-
Notifications
You must be signed in to change notification settings - Fork 663
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
read-only share: locally modified file mutliple times should create multiple conflict files (?) #5273
Comments
@moscicki Yes, I agree there should be multiple conflict files. It seems to be using the mtime of the server's version of the file for the conflict file name. |
Yes, i suppose using the local time is actually better. |
Otherwise local conflict files may be overridden in a restore situation. See ticket for details.
Pull request including change and test: #5300 |
Otherwise local conflict files may be overridden in a restore situation. See ticket for details.
@ckamm Yup, now the conflict files are created with the local timestamp (
And then, one question. When I create a new file/folder in a read-only folder, it generates a Sync error (which btw, removes the previous conflict entry in the "Not synced" tab and replaces it by the one about the new sync error) - but this is semantically the same as adding a conflict file (that doesn't cause a sync error). |
@SamuAlfageme Conflict messages are currently not persistent, i.e. they are removed when the next sync is triggered and won't show up again. Since conflicts should almost always be resolved quickly by the user, that seems like a usability problem we'll want to address. (I'll add a note to #2766) Adding a new file to a read-only folder and creating a conflict file inside it aren't equivalent, because conflict files are never synced, so by not syncing the conflict file no user expectations (that the file should be transfered to the sever) are violated. The overlay issues you mention I'll move to a separate ticket since they're unrelated to this issue (nice catch!). |
ownCloud 2.2.4 on MacOSX.
In read-only share I modified a file b.txt which was fully synchronized initially. I had to add the write-bit because it was read-only. The system tried to revert the file but since it found a modification it created a conflict file. The sync was green at the end. That's all expected.
When I then again modified file b.txt the system did not create the second conflict file as it should. Instead it left the b.txt modified locally. The resulting log was this:
When I subsequently removed the conflict file b.txt was restored from the server and a new conflict file created.
Should it create multiple conflict files in this cases to have consistent behaviour?
The text was updated successfully, but these errors were encountered: