From 04716a623ede02214798a9c484bff57f6974b74b Mon Sep 17 00:00:00 2001 From: yarikoptic Date: Tue, 11 Dec 2018 16:50:31 +0000 Subject: [PATCH 1/3] Initial report on addurl file:/// not working on Windows --- ...le__58____47____47____47___on_Windows.mdwn | 63 +++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 doc/bugs/Unable_to_addurl_file__58____47____47____47___on_Windows.mdwn diff --git a/doc/bugs/Unable_to_addurl_file__58____47____47____47___on_Windows.mdwn b/doc/bugs/Unable_to_addurl_file__58____47____47____47___on_Windows.mdwn new file mode 100644 index 0000000000..17c6548925 --- /dev/null +++ b/doc/bugs/Unable_to_addurl_file__58____47____47____47___on_Windows.mdwn @@ -0,0 +1,63 @@ +### Please describe the problem. + +Unable to addurl to a file:/// on Windows + +1. doesn't understand file:/// +2. with file:// blows with permission denied: + +[[!format sh """ +C:\...pData\Local\Temp\1\datalad_temp_testrepo_tmphjl88>git annex addurl --file buga file:///C:/123 +addurl file:///C:/123 +download failed: /C:/123: openBinaryFile: invalid argument (Invalid argument) +failed +git-annex: addurl: 1 failed + +C:\...pData\Local\Temp\1\datalad_temp_testrepo_tmphjl88>git annex addurl --file buga file://C:/123 +addurl file://C:/123 +(to buga) +git-annex: .git\annex\tmp\URL-s6--file&c%%C&c%123: renameFile:renamePath:MoveFileEx "\\\\?\\C:\\Users\\appveyor\\ +AppData\\Local\\Temp\\1\\datalad_temp_testrepo_tmphjl88\\.git\\annex\\tmp\\URL-s6--file&c%%C&c%123" Just "\\\\?\\ +C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\datalad_temp_testrepo_tmphjl88\\buga": permission denied (The proce +ss cannot access the file because it is being used by another process.) +failed +git-annex: addurl: 1 failed + +"""]] + +here is some relevant details (and showing curl handling both file:// and file:///): +[[!format sh """ +C:\...pData\Local\Temp\1\datalad_temp_testrepo_tmphjl88>git status +On branch adjusted/master(unlocked) +nothing to commit, working tree clean + +C:\...pData\Local\Temp\1\datalad_temp_testrepo_tmphjl88>git annex version +git-annex version: 7.20181205-g51d6f38b1 +build flags: Assistant Webapp Pairing S3(multipartupload)(storageclasses) WebDAV TorrentParser Feeds Testsuite +dependency versions: aws-0.17.1 bloomfilter-2.0.1.0 cryptonite-0.23 DAV-1.3.1 feed-0.3.12.0 ghc-8.0.2 http-client +-0.5.7.1 persistent-sqlite-2.6.2 torrent-10000.1.1 uuid-1.3.13 yesod-1.4.5 +key/value backends: SHA256E SHA256 SHA512E SHA512 SHA224E SHA224 SHA384E SHA384 SHA3_256E SHA3_256 SHA3_512E SHA3 +_512 SHA3_224E SHA3_224 SHA3_384E SHA3_384 SKEIN256E SKEIN256 SKEIN512E SKEIN512 BLAKE2B256E BLAKE2B256 BLAKE2B51 +2E BLAKE2B512 BLAKE2B160E BLAKE2B160 BLAKE2B224E BLAKE2B224 BLAKE2B384E BLAKE2B384 BLAKE2S256E BLAKE2S256 BLAKE2S +160E BLAKE2S160 BLAKE2S224E BLAKE2S224 BLAKE2SP256E BLAKE2SP256 BLAKE2SP224E BLAKE2SP224 SHA1E SHA1 MD5E MD5 WORM + URL +remote types: git gcrypt p2p S3 bup directory rsync web bittorrent webdav adb tahoe glacier ddar hook external +operating system: mingw32 i386 +supported repository versions: 5 7 +upgrade supported from repository versions: 2 3 4 5 6 +local repository version: 7 + +C:\...pData\Local\Temp\1\datalad_temp_testrepo_tmphjl88>git status +On branch adjusted/master(unlocked) +nothing to commit, working tree clean + +C:\...pData\Local\Temp\1\datalad_temp_testrepo_tmphjl88>curl file://C:/123 +124 + +C:\...pData\Local\Temp\1\datalad_temp_testrepo_tmphjl88>curl file:///C:/123 +124 +"""]] + +More information about this appveyor server could be obtained from [datalad wtf](http://paste.debian.net/1055359/) output + +Awhile back we [had related discussion](https://git-annex.branchable.com/bugs/git-annex_drop_fails_to_access_file__58____47____47____47___target_URL_on_Windows/) but at least `addurl` seemed to work then. + From 7c944336cbdceda8bee9e12e5d3d2fce115f1384 Mon Sep 17 00:00:00 2001 From: anarcat Date: Tue, 11 Dec 2018 16:51:18 +0000 Subject: [PATCH 2/3] forgot to sign that bug! will try to test this as soon as the next release comes out - thanks! --- doc/bugs/cannot_talk_with_nextcloud_server.mdwn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/bugs/cannot_talk_with_nextcloud_server.mdwn b/doc/bugs/cannot_talk_with_nextcloud_server.mdwn index 7d0c18e9b2..84f1841656 100644 --- a/doc/bugs/cannot_talk_with_nextcloud_server.mdwn +++ b/doc/bugs/cannot_talk_with_nextcloud_server.mdwn @@ -127,7 +127,7 @@ Incidentally, the [[tips/owncloudannex]] remote also [fails](https://github.com/ ### Have you had any luck using git-annex before? (Sometimes we get tired of reading bug reports all day and a lil' positive end note does wonders) -I use git-annex every day! I hope to write a glowing review for LWN soon. ;) Cheers and hi joey! :) +I use git-annex every day! I hope to write a glowing review for LWN soon. ;) Cheers and hi joey! :) -- [[anarcat]] > So the problem is code was changed a while ago to `mkColRecursive "/"` > which causes this wacky attempt to mkcol at the top of the server not From c7a48ca1d82a2b86620dcbe4594a3c1f075df9c4 Mon Sep 17 00:00:00 2001 From: yarikoptic Date: Tue, 11 Dec 2018 16:51:54 +0000 Subject: [PATCH 3/3] tuned up description and added my meta to find it later --- ...to_addurl_file__58____47____47____47___on_Windows.mdwn | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/doc/bugs/Unable_to_addurl_file__58____47____47____47___on_Windows.mdwn b/doc/bugs/Unable_to_addurl_file__58____47____47____47___on_Windows.mdwn index 17c6548925..8a482fb478 100644 --- a/doc/bugs/Unable_to_addurl_file__58____47____47____47___on_Windows.mdwn +++ b/doc/bugs/Unable_to_addurl_file__58____47____47____47___on_Windows.mdwn @@ -1,9 +1,9 @@ ### Please describe the problem. -Unable to addurl to a file:/// on Windows +Unable to addurl to a `file:///` on Windows -1. doesn't understand file:/// -2. with file:// blows with permission denied: +1. doesn't understand `file:///C:/` +2. with `file://C:/` blows with permission denied: [[!format sh """ C:\...pData\Local\Temp\1\datalad_temp_testrepo_tmphjl88>git annex addurl --file buga file:///C:/123 @@ -61,3 +61,5 @@ More information about this appveyor server could be obtained from [datalad wtf] Awhile back we [had related discussion](https://git-annex.branchable.com/bugs/git-annex_drop_fails_to_access_file__58____47____47____47___target_URL_on_Windows/) but at least `addurl` seemed to work then. + +[[!meta author=yoh]]