From: Olivier Goffart Date: Thu, 29 Nov 2018 22:17:34 +0000 (+0100) Subject: Chunking Move: Fix too many starting slashes in the destination header X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~21^2~468^2~349 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=51d2e41d8b7c9f03c7e81ea6abe6b6df0e1d9378;p=nextcloud-desktop.git Chunking Move: Fix too many starting slashes in the destination header Commit 6ca724f fixed it for the move case. But the upload MOVE did the same Issue #6904 --- diff --git a/src/libsync/propagateuploadng.cpp b/src/libsync/propagateuploadng.cpp index 336b02a1f..f8375a1e9 100644 --- a/src/libsync/propagateuploadng.cpp +++ b/src/libsync/propagateuploadng.cpp @@ -290,8 +290,8 @@ void PropagateUploadFileNG::startNextChunk() // Finish with a MOVE // If we changed the file name, we must store the changed filename in the remote folder, not the original one. - QString destination = QDir::cleanPath(propagator()->account()->url().path() + QLatin1Char('/') - + propagator()->account()->davPath() + propagator()->_remoteFolder + _fileToUpload._file); + QString destination = QDir::cleanPath(propagator()->account()->davUrl().path() + + propagator()->_remoteFolder + _fileToUpload._file); auto headers = PropagateUploadFileCommon::headers(); // "If-Match applies to the source, but we are interested in comparing the etag of the destination