{"action":"closed","issue":{"url":"https://api.github.com/repos/owncloud/apps/issues/1953","labels_url":"https://api.github.com/repos/owncloud/apps/issues/1953/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/apps/issues/1953/comments","events_url":"https://api.github.com/repos/owncloud/apps/issues/1953/events","html_url":"https://github.com/owncloud/apps/issues/1953","id":46648374,"number":1953,"title":"[locking] Lock code creates an empty target file when renaming folders","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/apps/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-10-23T16:55:43Z","updated_at":"2016-01-22T08:48:07Z","closed_at":"2016-01-22T08:48:07Z","body":"Rename a folder \"X\" to \"X2\" and debug the operation.\r\n\r\nAt the time where the write lock for `$path2` is acquired, it will create an empty file \"X2\".\r\nFortunately the rename code from core is clever enough to delete \"X2\" before renaming it to \"X\".\r\n\r\nThis is a minor issue, I don't think it will cause any side-effects apart from causing additional useless IO."}}