{"action":"created","issue":{"url":"https://api.github.com/repos/owncloud/core/issues/16351","labels_url":"https://api.github.com/repos/owncloud/core/issues/16351/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/core/issues/16351/comments","events_url":"https://api.github.com/repos/owncloud/core/issues/16351/events","html_url":"https://github.com/owncloud/core/issues/16351","id":76290330,"number":16351,"title":"Moving a file with versions into an external storage folder and restoring a previous version can't be decrypted.","user":{"login":"SergioBertolinSG","id":9048796,"avatar_url":"https://avatars.githubusercontent.com/u/9048796?v=3","gravatar_id":"","url":"https://api.github.com/users/SergioBertolinSG","html_url":"https://github.com/SergioBertolinSG","followers_url":"https://api.github.com/users/SergioBertolinSG/followers","following_url":"https://api.github.com/users/SergioBertolinSG/following{/other_user}","gists_url":"https://api.github.com/users/SergioBertolinSG/gists{/gist_id}","starred_url":"https://api.github.com/users/SergioBertolinSG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SergioBertolinSG/subscriptions","organizations_url":"https://api.github.com/users/SergioBertolinSG/orgs","repos_url":"https://api.github.com/users/SergioBertolinSG/repos","events_url":"https://api.github.com/users/SergioBertolinSG/events{/privacy}","received_events_url":"https://api.github.com/users/SergioBertolinSG/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/app:files_external","name":"app:files_external","color":"02d7e1"},{"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/sev1-critical","name":"sev1-critical","color":"fc2929"}],"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":147,"closed_issues":1119,"state":"open","created_at":"2014-12-22T12:04:01Z","updated_at":"2015-05-15T09:16:13Z","due_on":"2015-04-02T22:00:00Z","closed_at":null},"comments":2,"created_at":"2015-05-14T08:57:12Z","updated_at":"2015-05-15T09:20:37Z","closed_at":null,"body":"### Steps to reproduce\r\n\r\n1. Enable encryption app.\r\n2. Enable encryption module in admin page.\r\n3. Relogin.\r\n4. Create a file \"versions.txt\"\r\n5. Edit and save the file multiple times to create versions\r\n6. Open the \"Versions\" dropdown and see that versions exist\r\n7. Mount a SFTP external storage to \"/sftp\"\r\n8. Move \"/versions.txt\" to \"/sftp\"\r\n9. Open the \"Versions\" dropdown again\r\n10. Restore a previous version.\r\n11. Open the file.\r\n\r\n\r\n### Expected behaviour\r\nFile can be opened an text is still readable.\r\n\r\n### Actual behaviour\r\nFile can't be decrypted.\r\n\r\n### Server configuration\r\n**Operating system**:\r\nUbuntu 14.04\r\n\r\n**Web server:**\r\nApache\r\n\r\n**Database:**\r\nMySQL\r\n\r\n**PHP version:**\r\n5.5.9\r\n\r\n**ownCloud version:** (see ownCloud admin page)\r\n{\"installed\":true,\"maintenance\":false,\"version\":\"8.1.0.5\",\"versionstring\":\"8.1 beta 1\",\"edition\":\"Enterprise\"}\r\n\r\n**Updated from an older ownCloud or fresh install:**\r\nFresh\r\n\r\n**List of activated apps:**\r\nDefault in enterprise edition.\r\nEncryption.\r\n\r\n**The content of config/config.php:**\r\n\r\n```\r\n\r\n```\r\n\r\n\r\n**Are you using external storage, if yes which one:** local/smb/sftp/...\r\nNo\r\n\r\n**Are you using encryption:** \r\nYes\r\n\r\n**Logs**\r\n```\r\n```\r\n\r\n### Client configuration\r\n\r\n**browser**\r\nChrome 41, Firefox\r\n"},"comment":{"url":"https://api.github.com/repos/owncloud/core/issues/comments/102338855","html_url":"https://github.com/owncloud/core/issues/16351#issuecomment-102338855","issue_url":"https://api.github.com/repos/owncloud/core/issues/16351","id":102338855,"user":{"login":"nickvergessen","id":213943,"avatar_url":"https://avatars.githubusercontent.com/u/213943?v=3","gravatar_id":"","url":"https://api.github.com/users/nickvergessen","html_url":"https://github.com/nickvergessen","followers_url":"https://api.github.com/users/nickvergessen/followers","following_url":"https://api.github.com/users/nickvergessen/following{/other_user}","gists_url":"https://api.github.com/users/nickvergessen/gists{/gist_id}","starred_url":"https://api.github.com/users/nickvergessen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickvergessen/subscriptions","organizations_url":"https://api.github.com/users/nickvergessen/orgs","repos_url":"https://api.github.com/users/nickvergessen/repos","events_url":"https://api.github.com/users/nickvergessen/events{/privacy}","received_events_url":"https://api.github.com/users/nickvergessen/received_events","type":"User","site_admin":false},"created_at":"2015-05-15T09:20:37Z","updated_at":"2015-05-15T09:20:37Z","body":"Looks like we need to decryption all versions when moving a file Oo?"}}