Skip to content

Commit

Permalink
Upload: Do not error out if the server do not send the X-OC-MTime: ac…
Browse files Browse the repository at this point in the history
…cepted header

If the server does not set the mtime, it is not a big problem for the
synchronisation.

The test was used before so we could do a PROPPATCH for server that did not
support this header. But now that all server supports that we don't need to
to the check. (We do not do the PROPPATCH since we got rid of the neon
dependency)

Apparently, it may happen that some backend don't support setting mtime
and this can lead to this error.

owncloud/client#6797
  • Loading branch information
ogoffart authored and Kevin Ottens committed Nov 27, 2020
1 parent 2f88605 commit f670fbd
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/libsync/propagateuploadv1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -313,8 +313,6 @@ void PropagateUploadFileV1::slotPutFinished()
// Normally Owncloud 6 always puts X-OC-MTime
qCWarning(lcPropagateUpload) << "Server does not support X-OC-MTime" << job->reply()->rawHeader("X-OC-MTime");
// Well, the mtime was not set
done(SyncFileItem::SoftError, "Server does not support X-OC-MTime");
return;
}

finalize();
Expand Down

0 comments on commit f670fbd

Please sign in to comment.