From 90f1f28b638ea8c7edaa953fa5c8864f08038d92 Mon Sep 17 00:00:00 2001 From: "https://www.google.com/accounts/o8/id?id=AItOawnx8kHW66N3BqmkVpgtXDlYMvr8TJ5VvfY" Date: Sat, 28 Mar 2015 02:07:04 +0000 Subject: --- ...explicitly_specified_one_in_addurl_--file_.mdwn | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 doc/bugs/Uses_suggested_by_CHECKURL-CONTENTS_filename_instead_of_explicitly_specified_one_in_addurl_--file_.mdwn (limited to 'doc/bugs/Uses_suggested_by_CHECKURL-CONTENTS_filename_instead_of_explicitly_specified_one_in_addurl_--file_.mdwn') diff --git a/doc/bugs/Uses_suggested_by_CHECKURL-CONTENTS_filename_instead_of_explicitly_specified_one_in_addurl_--file_.mdwn b/doc/bugs/Uses_suggested_by_CHECKURL-CONTENTS_filename_instead_of_explicitly_specified_one_in_addurl_--file_.mdwn new file mode 100644 index 000000000..0db286999 --- /dev/null +++ b/doc/bugs/Uses_suggested_by_CHECKURL-CONTENTS_filename_instead_of_explicitly_specified_one_in_addurl_--file_.mdwn @@ -0,0 +1,24 @@ +### Please describe the problem. + + +### What steps will reproduce the problem? + +Run with a custom external remote which provides CHECKURL-CONTENTS response with filename, and then run +annex addurl --file=existing_file URL expecting to get that URL assigned to existing_file + +Alternatively, there is a small test repo + +with .git/bin/git-annex-remote-dl+archive under /tmp/tmpSqa8CH having what was supposed to be a replayable protocol (if you do + + cd /tmp/tmplVoa6C; PATH=/tmp/tmplVoa6C/.git/bin:$PATH git annex --debug addurl --file test2.dat --relaxed dl+archive:SHA256E-s163--e424b6fef10c18b9aaa5bc773ef62a2632eaf1448ff3372d43557be4adca6419.tar.gz/a/d/test.dat + +But for this one, I guess since addurl command actually succeeds, it is no longer replayable (protocol of interactions diverges) but you will see all the interactions between my remote and annex in that file recorded for you. And you will see the test.dat uncommitted and with somewhat obscured URL-based key, although originally the call was + + git annex --debug addurl --file test2.dat --relaxed dl+archive:SHA256E-s163--1f86ca26e1ca3cad3e8c8f1684d558b5e5f48d5928e0db45ab2e7d3be3d35307.tar.gz/a/d/test.dat + +from which I expected test2.dat get a new URL and that Filename remote spit out being ignored + +### What version of git-annex are you using? On what operating system? + +5.20150327+git27-g6af24b6-1 + -- cgit v1.2.3