{"action":"created","issue":{"url":"https://api.github.com/repos/owncloud/core/issues/18225","labels_url":"https://api.github.com/repos/owncloud/core/issues/18225/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/core/issues/18225/comments","events_url":"https://api.github.com/repos/owncloud/core/issues/18225/events","html_url":"https://github.com/owncloud/core/issues/18225","id":100494108,"number":18225,"title":"Repair script for encrypted files that were not marked as encrypted + wrong size","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:encryption","name":"app:encryption","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/enhancement%20-%20proposed","name":"enhancement - proposed","color":"FF9900"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/owncloud/core/milestones/48","html_url":"https://github.com/owncloud/core/milestones/9.0-current","labels_url":"https://api.github.com/repos/owncloud/core/milestones/48/labels","id":1196845,"number":48,"title":"9.0-current","description":"","creator":{"login":"cmonteroluque","id":879976,"avatar_url":"https://avatars.githubusercontent.com/u/879976?v=3","gravatar_id":"","url":"https://api.github.com/users/cmonteroluque","html_url":"https://github.com/cmonteroluque","followers_url":"https://api.github.com/users/cmonteroluque/followers","following_url":"https://api.github.com/users/cmonteroluque/following{/other_user}","gists_url":"https://api.github.com/users/cmonteroluque/gists{/gist_id}","starred_url":"https://api.github.com/users/cmonteroluque/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmonteroluque/subscriptions","organizations_url":"https://api.github.com/users/cmonteroluque/orgs","repos_url":"https://api.github.com/users/cmonteroluque/repos","events_url":"https://api.github.com/users/cmonteroluque/events{/privacy}","received_events_url":"https://api.github.com/users/cmonteroluque/received_events","type":"User","site_admin":false},"open_issues":675,"closed_issues":1153,"state":"open","created_at":"2015-07-07T14:21:23Z","updated_at":"2016-01-29T09:10:45Z","due_on":"2016-03-08T04:00:00Z","closed_at":null},"comments":26,"created_at":"2015-08-12T08:37:13Z","updated_at":"2016-01-29T10:29:22Z","closed_at":null,"body":"Due to https://github.com/owncloud/core/issues/17594, files uploaded to a shared folder in 8.1.0 through Webdav have the wrong file size and cannot be downloaded properly.\r\nThe core issue has been fixed but the bogus files still exist on my system.\r\n\r\nOf course I could just reupload them, but for people who have more than a few files it will be tedious to reupload them or ask several users to reupload some files.\r\n\r\nI suggest to have a repair step that rescans encrypted files and updates the matching oc_filecache entry with the correct size and encrypted flag.\r\n\r\nSome kind of files:scan but for encryption.\r\n\r\n@schiesbn @DeepDiver1975 what do you think ?"},"comment":{"url":"https://api.github.com/repos/owncloud/core/issues/comments/176683727","html_url":"https://github.com/owncloud/core/issues/18225#issuecomment-176683727","issue_url":"https://api.github.com/repos/owncloud/core/issues/18225","id":176683727,"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":"2016-01-29T10:29:22Z","updated_at":"2016-01-29T10:29:22Z","body":"The way it works is that you need the user to download the file once for the repair to happen. That first download will fail because when we know the correct size the file was already fully streamed to the client, so the first download fails. Subsequent downloads will then work properly.\r\nOne idea would be to have sync clients take care of the download/redownload in such situations."}}