{"action":"created","issue":{"url":"https://api.github.com/repos/owncloud/core/issues/12129","labels_url":"https://api.github.com/repos/owncloud/core/issues/12129/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/core/issues/12129/comments","events_url":"https://api.github.com/repos/owncloud/core/issues/12129/events","html_url":"https://github.com/owncloud/core/issues/12129","id":48501814,"number":12129,"title":"Files during accidental mass deletion lost and not found even in Trashbin!","user":{"login":"brozkeff","id":5907371,"avatar_url":"https://avatars.githubusercontent.com/u/5907371?v=3","gravatar_id":"","url":"https://api.github.com/users/brozkeff","html_url":"https://github.com/brozkeff","followers_url":"https://api.github.com/users/brozkeff/followers","following_url":"https://api.github.com/users/brozkeff/following{/other_user}","gists_url":"https://api.github.com/users/brozkeff/gists{/gist_id}","starred_url":"https://api.github.com/users/brozkeff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brozkeff/subscriptions","organizations_url":"https://api.github.com/users/brozkeff/orgs","repos_url":"https://api.github.com/users/brozkeff/repos","events_url":"https://api.github.com/users/brozkeff/events{/privacy}","received_events_url":"https://api.github.com/users/brozkeff/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/owncloud/core/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/owncloud/core/labels/sharing","name":"sharing","color":"e102d8"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2014-11-12T11:49:23Z","updated_at":"2015-11-05T08:42:11Z","closed_at":"2015-11-05T08:42:11Z","body":"### Steps to reproduce\r\n1. Install OC server 7.0.3 on your own linux VPS\r\n2. create a few users, upload a few GB of data from user A with unlimited quota\r\n3. share dozens of individual files and directories of 1000s of files and a few GBs in size to other users\r\n4. let them connect on another computers with Windows 7 to start downloading the shared files\r\n5. as user A log to web interface, select \"Files shared with others\" and instad of un-sharing, start clicking the trashbin icon to delete quickly one file/directory after another (I was thinking I am unsharing files but actually I was deleting them even from myself, and the changes immediately started proppagating everywhere)\r\n6. realize you did a mistake, and files are being deleted instead of just being unshared, go to trashbin to restore it all back, start restoring what you find there but eventually some folders (for me it was the biggest of them) do not show in the recycle bin, nor they can be found on the server physically... the clients on the computers are also already deleting all the files\r\n7. stop this madness by reverting whole VPS to the last snapshot\r\n\r\n### Expected behaviour\r\na) When being in the tab \"shared by me  to others\" the trash bin should be replaced with Unshare button, and deleting when not in the main filelist should not be allowed at all.\r\nThe behaviour when being in the tab \"shared to me from others\" is that clicking recycle bin unshares it but it remains on the file owner's account\r\n\r\nb) even if such heavy deleting/restoring happens and multiple clients start syncing, there must never happen that files and directories vanish completely - all must be still found in trashbin in any circumstances and files must be on the server physically in the directory structure somewhere\r\n\r\n### Actual behaviour\r\nLot of files and folders vanished completely from the filesystem, the OC trashbin etc. See Steps to reproduce\r\n\r\n### Server configuration\r\n**Operating system**:\r\nUbuntu server 14.04\r\n\r\n**Web server:**\r\nApache 2.4\r\n\r\n**Database:**\r\nMySQL 5.5.35\r\n\r\n**PHP version:**\r\n5.5.9\r\n\r\n**ownCloud version:** (see ownCloud admin page)\r\n7.0.3\r\n\r\n**Updated from an older ownCloud or fresh install:**\r\noriginally 6.0.4\r\nthen gradually to 7.0 RC, and each version\r\n\r\n**List of activated apps:**\r\nActivity\r\nCalendar\r\nContacts\r\nDeleted Files\r\nDocments\r\nPictures\r\nShare files\r\nText Editor\r\nVersions\r\n\r\n\r\n**The content of config/config.php:**\r\n\r\n```\r\nInsert your config.php content here\r\n(Without the database password and passwordsalt)\r\n```\r\n\r\n**Are you using external storage, if yes which one:** local/smb/sftp/...\r\n\r\n**Are you using encryption:** yes/no\r\nno\r\n\r\n### Client configuration\r\n**Browser:**\r\nFirefox 33\r\n\r\n**Operating system:**\r\nGNU/Linux Mint 17 Cinnamon\r\n\r\n### Logs\r\n#### Web server error log\r\n```\r\ni will send on demand by email\r\n```\r\n\r\n#### ownCloud log (data/owncloud.log)\r\njust part of the log from the administration interface\r\n```\r\nDebug \twebdav \tSabre\\DAV\\Exception\\NotAuthenticated: No basic authentication headers were found \tNovember 12, 2014 12:43:38\r\nDebug \tOC\\Files\\Cache\\Scanner \t!!! No reuse of etag for 'files_versions/MM-GRAFIKA' !!! cache: Array ( [fileid] => 74446 [storage] => home::martin.malec [path] => files_versions/MM-GRAFIKA [parent] => 27994 [name] => MM-GRAFIKA [mimetype] => httpd/unix-directory [mimepart] => httpd [size] => -1 [mtime] => 1415650720 [storage_mtime] => 1415650720 [encrypted] => [unencrypted_size] => 0 [etag] => 546336339742d [permissions] => 31 ) data: Array ( [mimetype] => httpd/unix-directory [mtime] => 1415789726 [size] => -1 [etag] => 546347cab0545 [storage_mtime] => 1415789726 [permissions] => 31 [parent] => 27994 ) \tNovember 12, 2014 12:43:06\r\nWarning \tcore \tLogin failed: 'martin.malec' (Remote IP: '81.19.3.71', X-Forwarded-For: '') \tNovember 12, 2014 12:43:00\r\nWarning\tcore\tLogin failed: 'martin.malec' (Remote IP: '81.19.3.71', X-Forwarded-For: '')\tNovember 12, 2014 12:43:00\r\nError\tPHP\tapc_store(): GC cache entry 'oc1fdcd11858/AutoloaderOC\\Log\\ErrorHandler' was on gc-list for 3612 seconds at /var/www/owncloud/lib/private/memcache/apc.php#21\tNovember 12, 2014 12:42:54\r\nError\tPHP\tapc_store(): GC cache entry 'oc1fdcd11858/AutoloaderOC\\Files\\Stream\\StaticStream' was on gc-list for 4104 seconds at /var/www/owncloud/lib/private/memcache/apc.php#21\tNovember 12, 2014 12:37:46\r\nDebug\tcarddav\tSabre\\DAV\\Exception\\NotAuthenticated: No basic authentication headers were found\tNovember 12, 2014 12:37:46\r\nDebug\tcarddav\tSabre\\DAV\\Exception\\NotAuthenticated: No basic authentication headers were found\tNovember 12, 2014 12:19:42\r\nError\tPHP\tapc_store(): GC cache entry 'oc1fdcd11858/AutoloaderOC\\Files\\Storage\\Loader' was on gc-list for 3630 seconds at /var/www/owncloud/lib/private/memcache/apc.php#21\tNovember 12, 2014 12:04:43\r\nDebug\twebdav\tSabre\\DAV\\Exception\\NotFound: File with name MM-GRAFIKA/ETIKETY/misc/_znacky materialu/označení, LDPE,HDPE, PET.ai could not be located\tNovember 12, 2014 12:03:46\r\nDebug\twebdav\tSabre\\DAV\\Exception\\NotFound: File with name MM-GRAFIKA/ETIKETY/misc/Y&B 2010-2013/SLEEVY/SPORTOVNI-PRACI.pdf could not be located\tNovember 12, 2014 12:03:46\r\nDebug\twebdav\tSabre\\DAV\\Exception\\NotFound: File with name MM-GRAFIKA/ETIKETY/misc/Y&B 2010-2013/SLEEVY/SILICE KOLECKA.pdf could not be located\tNovember 12, 2014 12:03:45\r\nDebug\twebdav\tSabre\\DAV\\Exception\\NotFound: File with name MM-GRAFIKA/ETIKETY/misc/Y&B 2010-2013/SLEEVY/PRACI GELY.pdf could not be located\tNovember 12, 2014 12:03:45\r\nDebug\twebdav\tSabre\\DAV\\Exception\\NotFound: File with name MM-GRAFIKA/ETIKETY/misc/Y&B 2010-2013/SLEEVY/PRACI GEL BEZ novy.pdf could not be located\tNovember 12, 2014 12:03:44\r\nDebug\twebdav\tSabre\\DAV\\Exception\\NotFound: File with name MM-GRAFIKA/ETIKETY/misc/Y&B 2010-2013/SLEEVY/MYCKA.pdf could not be located\tNovember 12, 2014 12:03:41\r\nDebug\twebdav\tSabre\\DAV\\Exception\\NotFound: File with name MM-GRAFIKA/ETIKETY/misc/Y&B 2010-2013/SLEEVY/LAHVE OSTATNI.pdf could not be located\tNovember 12, 2014 12:03:40\r\nDebug\twebdav\tSabre\\DAV\\Exception\\NotFound: File with name MM-GRAFIKA/ETIKETY/misc/Y&B 2010-2013/SLEEVY/GEL NADOBI.pdf could not be located\tNovember 12, 2014 12:03:39\r\nDebug\twebdav\tSabre\\DAV\\Exception\\NotFound: File with name MM-GRAFIKA/ETIKETY/misc/Y&B 2010-2013/SLEEVY/AVIVAZ.pdf could not be located\tNovember 12, 2014 12:03:39\r\nDebug\twebdav\tSabre\\DAV\\Exception\\NotFound: File with name MM-GRAFIKA/ETIKETY/misc/Y&B 2010-2013/SLEEVY/32417x.eps could not be located\tNovember 12, 2014 12:03:38\r\nDebug\twebdav\tSabre\\DAV\\Exception\\NotFound: File with name MM-GRAFIKA/ETIKETY/misc/Y&B 2010-2013/PAPIROVE/LETAKY/SKLADACKY/LETAKY-A4-CZ-SK-SE_.pdf could not be located\tNovember 12, 2014 12:03:36\r\nDebug\twebdav\tSabre\\DAV\\Exception\\NotFound: File with name MM-GRAFIKA/ETIKETY/misc/Y&B 2010-2013/PAPIROVE/LETAKY/SKLADACKY/LETAKY-A4-CZ-SK-SE.pdf could not be located\tNovember 12, 2014 12:03:36\r\nDebug\twebdav\tSabre\\DAV\\Exception\\NotFound: File with name MM-GRAFIKA/ETIKETY/misc/Y&B 2010-2013/PAPIROVE/LETAKY/SKLADACKY/LETAK SK.pdf could not be located\tNovember 12, 2014 12:03:34\r\nDebug\twebdav\tSabre\\DAV\\Exception\\NotFound: File with name MM-GRAFIKA/ETIKETY/misc/Y&B 2010-2013/PAPIROVE/LETAKY/SKLADACKY/LETAK SE.pdf could not be located\tNovember 12, 2014 12:03:34\r\n```\r\n\r\n\r\nActually I had 30 min old ZFS snapshot of the OpenVZ container where the company owncloud runs so I am now reverting to that snapshot. But otherwise it would be a major issue."},"comment":{"url":"https://api.github.com/repos/owncloud/core/issues/comments/153990309","html_url":"https://github.com/owncloud/core/issues/12129#issuecomment-153990309","issue_url":"https://api.github.com/repos/owncloud/core/issues/12129","id":153990309,"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-11-05T08:42:11Z","updated_at":"2015-11-05T08:42:11Z","body":"This should be solved with the high level file locking (implemented in 8.1 and activated in 8.2). Therefore I will close this ticket here."}}