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.

#6797
  • Loading branch information
ogoffart committed Oct 12, 2018
1 parent 5c3dc99 commit 821532f
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 @@ -310,8 +310,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 821532f

Please sign in to comment.