From: Kevin Ottens Date: Mon, 1 Feb 2021 15:50:45 +0000 (+0100) Subject: Make sure we pass a full remote path to LSCOL jobs X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~21^2~376^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=856f0567a7488fc34eb79af705bb25b92f3f6a99;p=nextcloud-desktop.git Make sure we pass a full remote path to LSCOL jobs Indeed the path we have is supposedly not fully qualified in case of a sync folder which doesn't point to / on the remote end. But LSCOL works with absolute paths on the server so make sure this is what we give it out. Signed-off-by: Kevin Ottens --- diff --git a/src/libsync/abstractpropagateremotedeleteencrypted.cpp b/src/libsync/abstractpropagateremotedeleteencrypted.cpp index c50166f9b..4d8bca505 100644 --- a/src/libsync/abstractpropagateremotedeleteencrypted.cpp +++ b/src/libsync/abstractpropagateremotedeleteencrypted.cpp @@ -58,7 +58,7 @@ void AbstractPropagateRemoteDeleteEncrypted::storeFirstErrorString(const QString void AbstractPropagateRemoteDeleteEncrypted::startLsColJob(const QString &path) { qCDebug(ABSTRACT_PROPAGATE_REMOVE_ENCRYPTED) << "Folder is encrypted, let's get the Id from it."; - auto job = new LsColJob(_propagator->account(), path, this); + auto job = new LsColJob(_propagator->account(), _propagator->fullRemotePath(path), this); job->setProperties({"resourcetype", "http://owncloud.org/ns:fileid"}); connect(job, &LsColJob::directoryListingSubfolders, this, &AbstractPropagateRemoteDeleteEncrypted::slotFolderEncryptedIdReceived); connect(job, &LsColJob::finishedWithError, this, &AbstractPropagateRemoteDeleteEncrypted::taskFailed);