[[!comment format=mdwn
 username="madalu"
 avatar="http://cdn.libravatar.org/avatar/c00d4aa29fd053f08a2ef35531592914"
 subject="comment 6"
 date="2017-10-06T23:45:13Z"
 content="""
I had a chance to do some more testing. I build the latest git-annex using stack (after uninstalling the arch-linux git annex and all its dependencies). I was able to reproduce the bug with the build.

git-annex version:

     git-annex version: 6.20171006-g676000770
     build flags: Assistant Webapp Pairing Testsuite S3(multipartupload)(storageclasses) WebDAV Inotify ConcurrentOutput TorrentParser Feeds Quvi
     dependency versions: aws-0.16 bloomfilter-2.0.1.0 cryptonite-0.21 DAV-1.3.1 feed-0.3.12.0 ghc-8.0.2 http-client-0.5.6.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 SHA1E SHA1 MD5E MD5 WORM URL
     remote types: git gcrypt p2p S3 bup directory rsync web bittorrent webdav tahoe glacier ddar hook external

Steps to reproduce (assumes the webdav repo initiation from the original bug report):

Create a file test.txt that contains \"Hello, world!\".

     git add test.txt
     git annex --verbose --debug copy -t box test.txt

This results in:

     [2017-10-06 18:32:00.036289708] read: git [\"--git-dir=.git\",\"--work-tree=.\",\"--literal-pathspecs\",\"show-ref\",\"git-annex\"]
     [2017-10-06 18:32:00.039256791] process done ExitSuccess
     [2017-10-06 18:32:00.039344582] read: git [\"--git-dir=.git\",\"--work-tree=.\",\"--literal-pathspecs\",\"show-ref\",\"--hash\",\"refs/heads/git-annex\"]
     [2017-10-06 18:32:00.041786875] process done ExitSuccess
     [2017-10-06 18:32:00.042888138] chat: git [\"--git-dir=.git\",\"--work-tree=.\",\"--literal-pathspecs\",\"cat-file\",\"--batch\"]
     [2017-10-06 18:32:00.043236927] chat: git [\"--git-dir=.git\",\"--work-tree=.\",\"--literal-pathspecs\",\"cat-file\",\"--batch-check=%(objectname) %(objecttype) %(objectsize)\"]
     [2017-10-06 18:32:00.064572923] read: git [\"--git-dir=.git\",\"--work-tree=.\",\"--literal-pathspecs\",\"ls-files\",\"--cached\",\"-z\",\"--\",\"test.txt\"]
     copy test.txt [2017-10-06 18:32:00.078377684] chat: gpg [\"--quiet\",\"--trust-model\",\"always\",\"--decrypt\"]
     [2017-10-06 18:32:00.16669294] process done ExitSuccess
     (checking box...) (to box...)
     [2017-10-06 18:32:01.195900381] chat: gpg  [\"--quiet\",\"--trust-model\",\"always\",\"--batch\",\"--passphrase-fd\",\"19\",\"--symmetric\",\"--force-mdc\",\"--no-textmode\"]
     [2017-10-06 18:32:32.159837783] process done ExitSuccess

       DAV failure: Status {statusCode = 405, statusMessage = \"Method Not Allowed\"} \"<?xml version=\\"1.0\\" encoding=\\"utf-8\\"?>\n<d:error xmlns:d=\\"DAV:\\" xmlns:s=\\"http://sabredav.org/ns\\">\n  <s:exception>Sabre_DAV_Exception_MethodNotAllowed</s:exception>\n  <s:message>The resource you tried to create already exists</s:message>\n</d:error>\n\" HTTP request: \"MKCOL\" \"/dav/mystuff/annex/.\"
     failed
     [2017-10-06 18:32:32.163143388] process done ExitSuccess
     [2017-10-06 18:32:32.163958789] process done ExitSuccess
     git-annex: copy: 1 failed



"""]]
