{"action":"created","issue":{"url":"https://api.github.com/repos/owncloud/core/issues/17245","labels_url":"https://api.github.com/repos/owncloud/core/issues/17245/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/core/issues/17245/comments","events_url":"https://api.github.com/repos/owncloud/core/issues/17245/events","html_url":"https://github.com/owncloud/core/issues/17245","id":91850213,"number":17245,"title":"Prevent version app operations when file is locked","user":{"login":"PVince81","id":277525,"avatar_url":"https://avatars.githubusercontent.com/u/277525?v=3","gravatar_id":"","url":"https://api.github.com/users/PVince81","html_url":"https://github.com/PVince81","followers_url":"https://api.github.com/users/PVince81/followers","following_url":"https://api.github.com/users/PVince81/following{/other_user}","gists_url":"https://api.github.com/users/PVince81/gists{/gist_id}","starred_url":"https://api.github.com/users/PVince81/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PVince81/subscriptions","organizations_url":"https://api.github.com/users/PVince81/orgs","repos_url":"https://api.github.com/users/PVince81/repos","events_url":"https://api.github.com/users/PVince81/events{/privacy}","received_events_url":"https://api.github.com/users/PVince81/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/owncloud/core/labels/app:files_versions","name":"app:files_versions","color":"02d7e1"},{"url":"https://api.github.com/repos/owncloud/core/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/owncloud/core/labels/feature:locking","name":"feature:locking","color":"d4c5f9"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/owncloud/core/milestones/31","html_url":"https://github.com/owncloud/core/milestones/8.1-current","labels_url":"https://api.github.com/repos/owncloud/core/milestones/31/labels","id":912160,"number":31,"title":"8.1-current","description":"","creator":{"login":"MorrisJobke","id":245432,"avatar_url":"https://avatars.githubusercontent.com/u/245432?v=3","gravatar_id":"","url":"https://api.github.com/users/MorrisJobke","html_url":"https://github.com/MorrisJobke","followers_url":"https://api.github.com/users/MorrisJobke/followers","following_url":"https://api.github.com/users/MorrisJobke/following{/other_user}","gists_url":"https://api.github.com/users/MorrisJobke/gists{/gist_id}","starred_url":"https://api.github.com/users/MorrisJobke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MorrisJobke/subscriptions","organizations_url":"https://api.github.com/users/MorrisJobke/orgs","repos_url":"https://api.github.com/users/MorrisJobke/repos","events_url":"https://api.github.com/users/MorrisJobke/events{/privacy}","received_events_url":"https://api.github.com/users/MorrisJobke/received_events","type":"User","site_admin":false},"open_issues":16,"closed_issues":1547,"state":"open","created_at":"2014-12-22T12:04:01Z","updated_at":"2015-06-29T16:29:21Z","due_on":"2015-07-07T04:00:00Z","closed_at":null},"comments":1,"created_at":"2015-06-29T16:29:07Z","updated_at":"2015-06-29T16:29:32Z","closed_at":null,"body":"### Steps to reproduce\r\n1. Enable transactional locking\r\n2. Create a file \"test.txt\"\r\n3. Edit \"test.txt\" and save multiple times to create versions\r\n4. A `sleep(30);` here to delay rename operation: https://github.com/owncloud/core/blob/b88a0e7080cd5b1844cfb286b06744f3a2fead20/lib/private/files/view.php#L664\r\n5. In a separate tab, rename \"test.txt\" to \"renamed.txt\" (this should take a while)\r\n6. In the first tab, during renaming, try downloading a version\r\n\r\n### Expected result\r\nFile is locked, cannot download (or restore) version.\r\n\r\n### Actual result\r\nIt is still possible to download or restore a version\r\n\r\n### Versions\r\nownCloud 8.1 git master b88a0e7080cd5b1844cfb286b06744f3a2fead20\r\n\r\n\r\nFile actions from apps like versions need to also lock the file.\r\n\r\n@icewind1991 @jnfrmarks @DeepDiver1975 @schiesbn "},"comment":{"url":"https://api.github.com/repos/owncloud/core/issues/comments/116750707","html_url":"https://github.com/owncloud/core/issues/17245#issuecomment-116750707","issue_url":"https://api.github.com/repos/owncloud/core/issues/17245","id":116750707,"user":{"login":"PVince81","id":277525,"avatar_url":"https://avatars.githubusercontent.com/u/277525?v=3","gravatar_id":"","url":"https://api.github.com/users/PVince81","html_url":"https://github.com/PVince81","followers_url":"https://api.github.com/users/PVince81/followers","following_url":"https://api.github.com/users/PVince81/following{/other_user}","gists_url":"https://api.github.com/users/PVince81/gists{/gist_id}","starred_url":"https://api.github.com/users/PVince81/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PVince81/subscriptions","organizations_url":"https://api.github.com/users/PVince81/orgs","repos_url":"https://api.github.com/users/PVince81/repos","events_url":"https://api.github.com/users/PVince81/events{/privacy}","received_events_url":"https://api.github.com/users/PVince81/received_events","type":"User","site_admin":false},"created_at":"2015-06-29T16:29:32Z","updated_at":"2015-06-29T16:29:32Z","body":"Tentatively setting to 8.1, but not sure if enough time to fix it."}}