fix webdav reversion

webdav: When initializing, avoid trying to make a directory at the top of
the webdav server, which could never accomplish anything and failed on
nextcloud servers. (Reversion introduced in version 6.20170925.)

This commit was sponsored by mo on patreon.
This commit is contained in:
Joey Hess 2018-12-10 12:49:51 -04:00
parent 6b4f184222
commit 3f587d447a
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
3 changed files with 7 additions and 1 deletions

View file

@ -10,6 +10,9 @@ git-annex (7.20181206) UNRELEASED; urgency=medium
* add, import, findref: Support --time-limit.
* Add --branch option to git-annex find and mildly deprecate findref in
favor of it.
* webdav: When initializing, avoid trying to make a directory at the top of
the webdav server, which could never accomplish anything and failed on
nextcloud servers. (Reversion introduced in version 6.20170925.)
-- Joey Hess <id@joeyh.name> Thu, 06 Dec 2018 13:39:16 -0400

View file

@ -274,7 +274,6 @@ testDav url (Just (u, p)) = do
test $ liftIO $ evalDAVT url $ do
prepDAV user pass
makeParentDirs
void $ mkColRecursive "/"
inLocation (tmpLocation "test") $ do
putContentM (Nothing, L8.fromString "test")
delContentM

View file

@ -128,3 +128,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! :)
> 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
> underneath the path of the url. [[fixed|done]] --[[Joey]]