{"action":"created","issue":{"url":"https://api.github.com/repos/owncloud/client/issues/5133","repository_url":"https://api.github.com/repos/owncloud/client","labels_url":"https://api.github.com/repos/owncloud/client/issues/5133/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/client/issues/5133/comments","events_url":"https://api.github.com/repos/owncloud/client/issues/5133/events","html_url":"https://github.com/owncloud/client/issues/5133","id":172925891,"number":5133,"title":"[2.3.*] [Windows] Inappropriate conflict resolution: Conflict even though I'm the only editor","user":{"login":"sagamusix","id":875883,"avatar_url":"https://avatars.githubusercontent.com/u/875883?v=3","gravatar_id":"","url":"https://api.github.com/users/sagamusix","html_url":"https://github.com/sagamusix","followers_url":"https://api.github.com/users/sagamusix/followers","following_url":"https://api.github.com/users/sagamusix/following{/other_user}","gists_url":"https://api.github.com/users/sagamusix/gists{/gist_id}","starred_url":"https://api.github.com/users/sagamusix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sagamusix/subscriptions","organizations_url":"https://api.github.com/users/sagamusix/orgs","repos_url":"https://api.github.com/users/sagamusix/repos","events_url":"https://api.github.com/users/sagamusix/events{/privacy}","received_events_url":"https://api.github.com/users/sagamusix/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/owncloud/client/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/owncloud/client/labels/Needs%20info","name":"Needs info","color":"207de5"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/owncloud/client/milestones/31","html_url":"https://github.com/owncloud/client/milestones/2.3.0","labels_url":"https://api.github.com/repos/owncloud/client/milestones/31/labels","id":1716523,"number":31,"title":"2.3.0","description":"","creator":{"login":"guruz","id":959327,"avatar_url":"https://avatars.githubusercontent.com/u/959327?v=3","gravatar_id":"","url":"https://api.github.com/users/guruz","html_url":"https://github.com/guruz","followers_url":"https://api.github.com/users/guruz/followers","following_url":"https://api.github.com/users/guruz/following{/other_user}","gists_url":"https://api.github.com/users/guruz/gists{/gist_id}","starred_url":"https://api.github.com/users/guruz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guruz/subscriptions","organizations_url":"https://api.github.com/users/guruz/orgs","repos_url":"https://api.github.com/users/guruz/repos","events_url":"https://api.github.com/users/guruz/events{/privacy}","received_events_url":"https://api.github.com/users/guruz/received_events","type":"User","site_admin":false},"open_issues":41,"closed_issues":77,"state":"open","created_at":"2016-04-19T08:55:00Z","updated_at":"2016-10-12T14:41:53Z","due_on":null,"closed_at":null},"comments":16,"created_at":"2016-08-24T11:17:43Z","updated_at":"2016-10-12T22:52:49Z","closed_at":null,"body":"### Expected behaviour\r\nWhen I'm the only client (and not doing any manual modifications on the server), the server should never overwrite any of my files.\r\n\r\n### Actual behaviour\r\nSometimes - I suspect it mostly happens with frequently-edited files, in particular files that may be modified while they are being synced - the ownCloud client seems to detect that there is a new file version on the server, which is not possible because I currently only sync with one client. In this case, ownCloud replaces the on-disk file with the server version and renames the original file to \"filename.conflict\" (or similar). I find this very inappropriate, the client should keep **my** version, especially since it has the newer file modification date than the server version.\r\n\r\nI don't know how ownCloud exactly implements the syncing mechanism, so I can only guess why it happens or what can be done to prevent it, but to me it sounds like the client should only hold an opportunistic lock on Windows (see e.g. https://blogs.msdn.microsoft.com/oldnewthing/20130415-00/?p=4663) so that if someone else modifies the file, the client just stops syncing it. Otherwise, I imagine that the client may see part of the original file and part of the modified file, which may or may not be the root cause of my problem.\r\n\r\n\r\n### Steps to reproduce\r\nUnsure. Probably happens by frequently updating a file. This happens very often e.g. when syncing my browser or instant messenger profiles, which get updated very often naturally.\r\n\r\n### Client configuration\r\nClient version: 2.3.0-nightly (but happened with any previous version as well)\r\n\r\nOperating system: Windows 7 x64\r\n\r\nOS language: German\r\n\r\nInstallation path of client: Default"},"comment":{"url":"https://api.github.com/repos/owncloud/client/issues/comments/253362691","html_url":"https://github.com/owncloud/client/issues/5133#issuecomment-253362691","issue_url":"https://api.github.com/repos/owncloud/client/issues/5133","id":253362691,"user":{"login":"sagamusix","id":875883,"avatar_url":"https://avatars.githubusercontent.com/u/875883?v=3","gravatar_id":"","url":"https://api.github.com/users/sagamusix","html_url":"https://github.com/sagamusix","followers_url":"https://api.github.com/users/sagamusix/followers","following_url":"https://api.github.com/users/sagamusix/following{/other_user}","gists_url":"https://api.github.com/users/sagamusix/gists{/gist_id}","starred_url":"https://api.github.com/users/sagamusix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sagamusix/subscriptions","organizations_url":"https://api.github.com/users/sagamusix/orgs","repos_url":"https://api.github.com/users/sagamusix/repos","events_url":"https://api.github.com/users/sagamusix/events{/privacy}","received_events_url":"https://api.github.com/users/sagamusix/received_events","type":"User","site_admin":false},"created_at":"2016-10-12T22:52:49Z","updated_at":"2016-10-12T22:52:49Z","body":"> Maybe we need to have the log for earlier upload of the file when the etag is saved in the database.\r\n\r\nI guess server logs don't go back that far? It's been a while since this file was uploaded.\r\nI couldn't spot any errors on the sync tab."}}
{"actor":{"display_login":"sagamusix"}}