{"action":"created","issue":{"url":"https://api.github.com/repos/owncloud/core/issues/22537","repository_url":"https://api.github.com/repos/owncloud/core","labels_url":"https://api.github.com/repos/owncloud/core/issues/22537/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/core/issues/22537/comments","events_url":"https://api.github.com/repos/owncloud/core/issues/22537/events","html_url":"https://github.com/owncloud/core/issues/22537","id":134950038,"number":22537,"title":"Trash bin auto deletion broken","user":{"login":"steve-s-71","id":17343515,"avatar_url":"https://avatars.githubusercontent.com/u/17343515?v=3","gravatar_id":"","url":"https://api.github.com/users/steve-s-71","html_url":"https://github.com/steve-s-71","followers_url":"https://api.github.com/users/steve-s-71/followers","following_url":"https://api.github.com/users/steve-s-71/following{/other_user}","gists_url":"https://api.github.com/users/steve-s-71/gists{/gist_id}","starred_url":"https://api.github.com/users/steve-s-71/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steve-s-71/subscriptions","organizations_url":"https://api.github.com/users/steve-s-71/orgs","repos_url":"https://api.github.com/users/steve-s-71/repos","events_url":"https://api.github.com/users/steve-s-71/events{/privacy}","received_events_url":"https://api.github.com/users/steve-s-71/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/owncloud/core/labels/app:files_trashbin","name":"app:files_trashbin","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/needs%20info","name":"needs info","color":"0b02e1"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-02-19T19:17:16Z","updated_at":"2016-02-26T21:28:29Z","closed_at":null,"body":"### Steps to reproduce\r\n1. Delete file\r\n2. Wait 7 Months\r\n3. Still find it in Trash bin\r\n\r\n### Expected behaviour\r\nTrash bin auto deletion should delete files after 30 days (default) or what is configured in config.php\r\n\r\n### Actual behaviour\r\nThere are many months old files in the Trash bin. If not manually deleted from the Trash bin, it seems they are hold for ever. As it stands, all user accounts are impacted by this issue.\r\n\r\nI tried following in the config file with no success:\r\n'trashbin_retention_obligation' => 14,\r\n\r\nalso I tried:\r\n'trashbin_retention_obligation' => '14',\r\n\r\nalso I tried:\r\n'trashbin_retention_obligation' => 14,\r\n'trashbin_auto_expire' => true,\r\n\r\nalso I tried:\r\n'trashbin_retention_obligation' => 7, 14,\r\n\r\nfinally I tried:\r\n'trashbin_retention_obligation' => '7, 14',\r\n\r\nall with no success.\r\n\r\n### Server configuration\r\n**Operating system**:\r\nLinux\r\n\r\n**Web server:**\r\nApache\r\n\r\n**Database:**\r\nMySQL\r\n\r\n**PHP version:**\r\n5.?\r\n\r\n**ownCloud version:** (see ownCloud admin page)\r\n8.2.2\r\n\r\n**Updated from an older ownCloud or fresh install:**\r\nupdated. originally it was 7.x or 6.x I dont remember\r\n"},"comment":{"url":"https://api.github.com/repos/owncloud/core/issues/comments/189489166","html_url":"https://github.com/owncloud/core/issues/22537#issuecomment-189489166","issue_url":"https://api.github.com/repos/owncloud/core/issues/22537","id":189489166,"user":{"login":"steve-s-71","id":17343515,"avatar_url":"https://avatars.githubusercontent.com/u/17343515?v=3","gravatar_id":"","url":"https://api.github.com/users/steve-s-71","html_url":"https://github.com/steve-s-71","followers_url":"https://api.github.com/users/steve-s-71/followers","following_url":"https://api.github.com/users/steve-s-71/following{/other_user}","gists_url":"https://api.github.com/users/steve-s-71/gists{/gist_id}","starred_url":"https://api.github.com/users/steve-s-71/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steve-s-71/subscriptions","organizations_url":"https://api.github.com/users/steve-s-71/orgs","repos_url":"https://api.github.com/users/steve-s-71/repos","events_url":"https://api.github.com/users/steve-s-71/events{/privacy}","received_events_url":"https://api.github.com/users/steve-s-71/received_events","type":"User","site_admin":false},"created_at":"2016-02-26T21:28:29Z","updated_at":"2016-02-26T21:28:29Z","body":"Hi Nick,\r\nI found a way to run the quirey from the bash. Here is the result:\r\n\r\n```\r\n+-------------------------------------------------+-------------+------------+------------+\r\n| class                                           | num_entries | oldest     | newest     |\r\n+-------------------------------------------------+-------------+------------+------------+\r\n| OCA\\Activity\\BackgroundJob\\EmailNotification    |           1 | 1456521301 | 1456521301 |\r\n| OCA\\Activity\\BackgroundJob\\ExpireActivities     |           1 | 1456513201 | 1456513201 |\r\n| OCA\\Files_Versions\\BackgroundJob\\ExpireVersions |           1 | 1456521301 | 1456521301 |\r\n| OCA\\Files_sharing\\Lib\\DeleteOrphanedSharesJob   |           1 | 1456521301 | 1456521301 |\r\n| OC\\BackgroundJob\\Legacy\\RegularJob              |           1 | 1456521301 | 1456521301 |\r\n+-------------------------------------------------+-------------+------------+------------+\r\n5 rows in set (0.00 sec)\r\n```\r\n"}}