]> dgit.raspbian.org Git - nextcloud-desktop.git/commit
libsync: use the new webdav url if the server reports it
authorOlivier Goffart <ogoffart@woboq.com>
Wed, 16 Nov 2016 08:30:29 +0000 (09:30 +0100)
committerOlivier Goffart <olivier@woboq.com>
Tue, 29 Nov 2016 15:16:20 +0000 (16:16 +0100)
commit19d2677db165dd50b7a550d48abfe60e3ecbbd24
treef6170192ce898a2afa8dbf68f203cbf6f222f1fe
parentacb155503b77e0a713afe7a93680b06566dde11c
libsync: use the new webdav url if the server reports it

The rules to select the webdav url are now:

 - If the server reports that the new chunking algorithm is working,
   always use remote.php/dav/files/<username>
   This capability can be overriden with an environment variable

 - Otherwise, use the dav path provided by the theme, which defaults to
   remote.php/webdav

This means that with the newer server, the branding can no longer override
the webdav URL. If there is still an usecase for the branding to do so, we
need to find another way to override it. But it is now more complicated to
configure as might need include the username and need different endpoint
depending on the operations (chunks or not)

Issue #4007
src/libsync/account.cpp
src/libsync/capabilities.cpp
src/libsync/owncloudpropagator.cpp
src/libsync/propagateuploadng.cpp