{"action":"created","issue":{"url":"https://api.github.com/repos/owncloud/core/issues/15486","labels_url":"https://api.github.com/repos/owncloud/core/issues/15486/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/core/issues/15486/comments","events_url":"https://api.github.com/repos/owncloud/core/issues/15486/events","html_url":"https://github.com/owncloud/core/pull/15486","id":67168122,"number":15486,"title":"Keep fileid when restoring version, using stream copy","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/5%20-%20To%20review","name":"5 - To review","color":"ededed"},{"url":"https://api.github.com/repos/owncloud/core/labels/8.0-next","name":"8.0-next","color":"996633"}],"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":189,"closed_issues":682,"state":"open","created_at":"2014-12-22T12:04:01Z","updated_at":"2015-04-09T08:24:51Z","due_on":"2015-04-02T22:00:00Z","closed_at":null},"comments":9,"created_at":"2015-04-08T16:29:12Z","updated_at":"2015-04-09T08:31:25Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/owncloud/core/pulls/15486","html_url":"https://github.com/owncloud/core/pull/15486","diff_url":"https://github.com/owncloud/core/pull/15486.diff","patch_url":"https://github.com/owncloud/core/pull/15486.patch"},"body":"Always stream copy when restoring version\r\n    \r\nThis is a workaround to make it possible to keep the file id when restoring a file. Please note that a stream copy would happen anyway when restoring cross-storage.\r\n\r\nPlease review @icewind1991 @SergioBertolinSG @nickvergessen @MorrisJobke @DeepDiver1975 "},"comment":{"url":"https://api.github.com/repos/owncloud/core/issues/comments/91149455","html_url":"https://github.com/owncloud/core/pull/15486#issuecomment-91149455","issue_url":"https://api.github.com/repos/owncloud/core/issues/15486","id":91149455,"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-04-09T08:31:25Z","updated_at":"2015-04-09T08:31:25Z","body":"Hmmm strange, thanks for the check.\r\nMaybe it's the stream copy that is firing hooks and automatically creating a new version. Not good.\r\n\r\nIn OC 7 that would probably happen too if the version is restored to external storage... as a side effect"}}