Make sure we pass a full remote path to LSCOL jobs
authorKevin Ottens <kevin.ottens@nextcloud.com>
Mon, 1 Feb 2021 15:50:45 +0000 (16:50 +0100)
committerallexzander (Rebase PR Action) <allexzander@users.noreply.github.com>
Thu, 4 Feb 2021 11:16:48 +0000 (11:16 +0000)
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 <kevin.ottens@nextcloud.com>
src/libsync/abstractpropagateremotedeleteencrypted.cpp

index c50166f9b1dabe2bc3faa990739549f276974e81..4d8bca50543bc3053e35e887c06b48e5a49f606b 100644 (file)
@@ -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);