-
Notifications
You must be signed in to change notification settings - Fork 669
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Activity message on file upload (dropbox target): Server does not support X-OC-MTime #6797
Comments
The server must return the |
As far as I remember, the upload code tries to do a Looking at https://github.com/owncloud/core/blob/v10.0.10/lib/private/Files/Storage/Flysystem.php#L224 which is the base class from the Dropbox implementation, it looks like setting mtime isn't supported by the Flysystem API at all. |
@ogoffart wasn't the older client behavior different, where if the header isn't returned it would try to do a PROPPATCH with the mtime afterwards ? Now even if it did, the mtime would not be settable due to the same reasons stated above. |
now this feels like a design inconsistency: in oc_filecache we have two columns, "storage_mtime" and "mtime" and the purpose of "mtime" is to be able to hold whatever mtime the client sent while the "storage_mtime" is whatever value the storage has now. In an ideal case they are identical but for cases where the storage does not support "touch", "storage_mtime" would be whatever value the storage assigns the file after writing is completed. A possible fix would be to change the current behavior to always accept the mtime and simply store it there. Need to think of potential side effects though. |
We do no longer call propatch since we got rid of the neon dependency in mirall 2.1. (At the time already, we were no longer supporting server which did not support the X-OC-MTime. (And I thought that it would be always accepted if the server supports it) In other words, this is an error since 2.1, and nobody who had ownCloud > 6.0 complained about it (that i know of) But maybe we can just remove this error as it does not really need to be an error in the first place. |
…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
…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
…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
closing as #6800 has been merged |
…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
…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
…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
…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
…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
…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
…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
…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
…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
…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
…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
Expected behaviour
Upload file
Actual behaviour
File not synced with error message:
Server does notsupport X-OC-MTime
Shown in activity, not synced
Files shows red crossed sync button
After some minutes, the file gets green and the client error message is gone
The file is also visible via the browser
Steps to reproduce
test.txt
(no upper / lower case issue as it is already lower case)Server configuration
Operating system: Ubuntu 16.04
Web server: nginx
Database: mysql
PHP version: 7.0
ownCloud version: 10.0.10 (Stable)
Storage backend (external storage): local, smb, ftp, dropbox
Client configuration
Client version: 2.5.0
Operating system: W10x64
OS language: DE
Logs
Please use Gist (https://gist.github.com/) or a similar code paster for longer
logs.
Client logfile:
Web server error log:
no issues
Server logfile: ownCloud log (data/owncloud.log):
no issues
The text was updated successfully, but these errors were encountered: