{"action":"created","issue":{"url":"https://api.github.com/repos/owncloud/core/issues/13391","labels_url":"https://api.github.com/repos/owncloud/core/issues/13391/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/core/issues/13391/comments","events_url":"https://api.github.com/repos/owncloud/core/issues/13391/events","html_url":"https://github.com/owncloud/core/issues/13391","id":54453631,"number":13391,"title":"Data loss on rename of a 49 GB folder","user":{"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},"labels":[{"url":"https://api.github.com/repos/owncloud/core/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-01-15T14:17:59Z","updated_at":"2015-01-16T09:40:52Z","closed_at":null,"body":"I accidentially renamed a folder on my production instance:\r\n\r\n* the folder was filled up with nearly 20k files in a total size of 48,7 GB\r\n* I renamed the folder in the web UI\r\n* shortly (2-5 seconds) after I noticed this I shut down the client to avoid bigger trouble (as this folder was set up as a synced folder inside the client)\r\n* the spinner spinned forever\r\n\r\nNotes\r\n* I have a database dump here\r\n* I have all apache logs here\r\n* I have the owncloud.log here\r\n* I have a filesystem snapshot\r\n\r\nIf someone wants to help me with digging in the debris is welcome.\r\n\r\nAccess log:\r\n\r\nThe rename:\r\n```\r\n127.0.0.1 - - [15/Jan/2015:13:32:39 +0100] \"GET /index.php/apps/files/ajax/rename.php?dir=%2F&newname=Bildersd&file=Bilder HTTP/1.1\" 503 1216\r\n```\r\n\r\nThe access log filtered for the folder Bilder:\r\n```\r\n...\r\n127.0.0.1 - - [15/Jan/2015:13:24:36 +0100] \"PROPFIND /remote.php/webdav/Bilder HTTP/1.1\" 207 411\r\n127.0.0.1 - - [15/Jan/2015:13:25:04 +0100] \"PROPFIND /remote.php/webdav/Bilder HTTP/1.1\" 207 411\r\n127.0.0.1 - - [15/Jan/2015:13:25:34 +0100] \"PROPFIND /remote.php/webdav/Bilder HTTP/1.1\" 207 411\r\n127.0.0.1 - - [15/Jan/2015:13:26:06 +0100] \"PROPFIND /remote.php/webdav/Bilder HTTP/1.1\" 207 411\r\n127.0.0.1 - - [15/Jan/2015:13:26:39 +0100] \"PROPFIND /remote.php/webdav/Bilder HTTP/1.1\" 207 16662\r\n127.0.0.1 - - [15/Jan/2015:13:27:36 +0100] \"PROPFIND /remote.php/webdav/Bilder HTTP/1.1\" 207 411\r\n127.0.0.1 - - [15/Jan/2015:13:28:06 +0100] \"PROPFIND /remote.php/webdav/Bilder HTTP/1.1\" 207 411\r\n127.0.0.1 - - [15/Jan/2015:13:28:36 +0100] \"PROPFIND /remote.php/webdav/Bilder HTTP/1.1\" 207 411\r\n127.0.0.1 - - [15/Jan/2015:13:29:06 +0100] \"PROPFIND /remote.php/webdav/Bilder HTTP/1.1\" 207 411\r\n127.0.0.1 - - [15/Jan/2015:13:29:36 +0100] \"PROPFIND /remote.php/webdav/Bilder HTTP/1.1\" 207 411\r\n127.0.0.1 - - [15/Jan/2015:13:30:05 +0100] \"PROPFIND /remote.php/webdav/Bilder HTTP/1.1\" 207 411\r\n127.0.0.1 - - [15/Jan/2015:13:30:34 +0100] \"PROPFIND /remote.php/webdav/Bilder HTTP/1.1\" 207 411\r\n127.0.0.1 - - [15/Jan/2015:13:31:04 +0100] \"PROPFIND /remote.php/webdav/Bilder HTTP/1.1\" 207 411\r\n127.0.0.1 - - [15/Jan/2015:13:31:36 +0100] \"PROPFIND /remote.php/webdav/Bilder HTTP/1.1\" 207 411\r\n127.0.0.1 - - [15/Jan/2015:13:32:09 +0100] \"PROPFIND /remote.php/webdav/Bilder HTTP/1.1\" 207 16662\r\n```\r\n\r\nNothing special in php-fpm.log or apache error log.\r\n\r\nThe folder is successfully renamed (in database and in the filesystem), but all database entries are gone (files are still there in the filesystem). Just a forced rescan with the occ command line tool was able to get them back into the database. Browsing the folder in the web UI didn't trigger the update of the file cache.\r\n\r\n! For the user (without admin rights) it's not possible to get back the data from the server. It's simply not shown.\r\n\r\nI will try to investigate further and try to reproduce. \r\n\r\ncc @karlitschek @DeepDiver1975 FYI could get a showstopper soon - I opened this ticket to document my process"},"comment":{"url":"https://api.github.com/repos/owncloud/core/issues/comments/70229686","html_url":"https://github.com/owncloud/core/issues/13391#issuecomment-70229686","issue_url":"https://api.github.com/repos/owncloud/core/issues/13391","id":70229686,"user":{"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},"created_at":"2015-01-16T09:40:52Z","updated_at":"2015-01-16T09:40:52Z","body":"@DeepDiver1975 @karlitschek I would rate this a bit higher. I talk to @icewind1991 and he would like to come up with a partly improving change, but reducing the load (especially the SQL queries) in a way like it was done for the delete operation isn't possible for 8.0 (#13394).\r\n\r\nOn the one hand this would  require bigger changes but on the other hand this will cause critical problems (and even data loss) on renaming folders with many children. \r\n\r\nIs this rated a showstopper or not?"}}