{"action":"created","issue":{"url":"https://api.github.com/repos/owncloud/core/issues/18005","labels_url":"https://api.github.com/repos/owncloud/core/issues/18005/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/core/issues/18005/comments","events_url":"https://api.github.com/repos/owncloud/core/issues/18005/events","html_url":"https://github.com/owncloud/core/issues/18005","id":98335018,"number":18005,"title":"Any files in home page aren't displayed after deleting shared user","user":{"login":"tazuke","id":11423070,"avatar_url":"https://avatars.githubusercontent.com/u/11423070?v=3","gravatar_id":"","url":"https://api.github.com/users/tazuke","html_url":"https://github.com/tazuke","followers_url":"https://api.github.com/users/tazuke/followers","following_url":"https://api.github.com/users/tazuke/following{/other_user}","gists_url":"https://api.github.com/users/tazuke/gists{/gist_id}","starred_url":"https://api.github.com/users/tazuke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tazuke/subscriptions","organizations_url":"https://api.github.com/users/tazuke/orgs","repos_url":"https://api.github.com/users/tazuke/repos","events_url":"https://api.github.com/users/tazuke/events{/privacy}","received_events_url":"https://api.github.com/users/tazuke/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/owncloud/core/labels/app:user_ldap","name":"app:user_ldap","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/sharing","name":"sharing","color":"e102d8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-07-31T07:47:09Z","updated_at":"2015-07-31T22:08:01Z","closed_at":null,"body":"### Steps to reproduce\r\n1. \"A\" shares some files with \"B\"\r\n2. Inactivate (or delete) A's accound from LDAP. Sharing informatin is already stored in the database.\r\n3. B login and opens ownCloud top page.\r\n\r\n### Expected behaviour\r\nDisplayed shared files.\r\n\r\n### Actual behaviour\r\nAny files aren't displayed.\r\n\r\n### Server configuration\r\n**Operating system**:\r\nCentOS 6.4\r\n\r\n**Web server:**\r\nApache/2.2.21\r\n\r\n**Database:**\r\nMariaDB 5.5.35\r\n\r\n**PHP version:**\r\n5.5.21\r\n\r\n**ownCloud version:** (see ownCloud admin page)\r\n8.0.4\r\n\r\n**Updated from an older ownCloud or fresh install:**\r\nfrom 7 to 8.0.4\r\n\r\n**The content of config/config.php:**\r\n\r\n```\r\n  'datadirectory' => '/usr/local/apache/vhosts/drive.abc.com/htdocs/data/',\r\n  'has_internet_connection' => false,\r\n  'appstoreenabled' => false,\r\n  'dbtype' => 'mysql',\r\n  'version' => '8.0.4.2',\r\n  'installed' => true,\r\n  'forcessl' => true,\r\n  'ldapIgnoreNamingRules' => false,\r\n  'theme' => 'rdrive',\r\n  'maintenance' => false,\r\n  'trusted_domains' =>\r\n  array (\r\n    0 => 'drive.abc.com',\r\n  ),\r\n  'loglevel' => '3',\r\n  'logtimezone' => 'Asia/Tokyo',\r\n  'log_rotate_size' => 3221225472,\r\n  'enable_previews' => true,\r\n```\r\n\r\n**Are you using external storage, if yes which one:** \r\ns3fs\r\n\r\n**Are you using encryption:**\r\n\r\n\r\n**Are you using an external user-backend, if yes which one:** \r\nLDAP\r\n\r\n#### LDAP configuration (delete this part if not used)\r\n\r\n```\r\n| user_ldap         | cleanUpJobOffset                     | 1150                                                                                                          | \r\n| user_ldap         | enabled                              | yes                                                                                                           | \r\n| user_ldap         | installed_version                    | 0.5.0                                                                                                         | \r\n| user_ldap         | ocsid                                | 166061                                                                                                        | \r\n| user_ldap         | s01has_memberof_filter_support       | 1                                                                                                             | \r\n| user_ldap         | s01home_folder_naming_rule           |                                                                                                               | \r\n| user_ldap         | s01last_jpegPhoto_lookup             | 0                                                                                                             | \r\n| user_ldap         | s01ldap_attributes_for_group_search  |                                                                                                               | \r\n| user_ldap         | s01ldap_attributes_for_user_search   |                                                                                                               | \r\n| user_ldap         | s01ldap_backup_host                  |                                                                                                               | \r\n| user_ldap         | s01ldap_backup_port                  |                                                                                                               | \r\n| user_ldap         | s01ldap_cache_ttl                    | 600                                                                                                           | \r\n| user_ldap         | s01ldap_configuration_active         | 1                                                                                                             | \r\n| user_ldap         | s01ldap_display_name                 | samaccountname                                                                                                | \r\n| user_ldap         | s01ldap_email_attr                   | mail                                                                                                          | \r\n| user_ldap         | s01ldap_experienced_admin            | 0                                                                                                             | \r\n| user_ldap         | s01ldap_expert_username_attr         |                                                                                                               | \r\n| user_ldap         | s01ldap_expert_uuid_group_attr       |                                                                                                               | \r\n| user_ldap         | s01ldap_expert_uuid_user_attr        |                                                                                                               | \r\n| user_ldap         | s01ldap_group_display_name           | cn                                                                                                            | \r\n| user_ldap         | s01ldap_group_filter_mode            | 1                                                                                                             | \r\n| user_ldap         | s01ldap_group_member_assoc_attribute | member                                                                                                        | \r\n| user_ldap         | s01ldap_groupfilter_groups           |                                                                                                               | \r\n| user_ldap         | s01ldap_groupfilter_objectclass      |                                                                                                               | \r\n| user_ldap         | s01ldap_login_filter_mode            | 1                                                                                                             | \r\n| user_ldap         | s01ldap_loginfilter_attributes       |                                                                                                               | \r\n| user_ldap         | s01ldap_loginfilter_email            | 0                                                                                                             | \r\n| user_ldap         | s01ldap_loginfilter_username         | 1                                                                                                             | \r\n| user_ldap         | s01ldap_nested_groups                | 0                                                                                                             | \r\n| user_ldap         | s01ldap_nocase                       | 1                                                                                                             | \r\n| user_ldap         | s01ldap_override_main_server         | 0                                                                                                             | \r\n| user_ldap         | s01ldap_paging_size                  | 500                                                                                                           | \r\n| user_ldap         | s01ldap_port                         | 389                                                                                                           | \r\n| user_ldap         | s01ldap_quota_attr                   |                                                                                                               | \r\n| user_ldap         | s01ldap_quota_def                    |                                                                                                               | \r\n| user_ldap         | s01ldap_tls                          | 0                                                                                                             | \r\n| user_ldap         | s01ldap_turn_off_cert_check          | 0                                                                                                             | \r\n| user_ldap         | s01ldap_user_filter_mode             | 1                                                                                                             | \r\n| user_ldap         | s01ldap_userfilter_groups            |                                                                                                               | \r\n| user_ldap         | s01ldap_userfilter_objectclass       |                                                                                                               | \r\n| user_ldap         | types                                | authentication                                                                                                | \r\n```\r\n\r\n### Logs\r\n#### Web server error log\r\n\r\n#### ownCloud log (data/owncloud.log)\r\n```\r\n{\"reqId\":\"84f00659fb01fcf1df9b3758be729312\",\"remoteAddr\":\"133.237.7.94\",\"app\":\"files\",\"message\":\" Backends provided no user object for AD93E318-DE5F-41A2-BFEF-F6EAD0BD08E5\",\"level\":3,\"time\":\"2015-07-30T09:45:31+09:00\"}\r\n{\"reqId\":\"84f00659fb01fcf1df9b3758be729312\",\"remoteAddr\":\"133.237.7.94\",\"app\":\"files\",\"message\":\"Exception: {\\\"Message\\\":\\\"\\\",\\\"Code\\\":0,\\\"Trace\\\":\\\"#0 \\\\\\/usr\\\\\\/local\\\\\\/rms\\\\\\/evt\\\\\\/rdrive\\\\\\/releases\\\\\\/core_201507300859_de037a0\\\\\\/apps\\\\\\/files_sharing\\\\\\/lib\\\\\\/cache.php(56): OC\\\\\\\\Files\\\\\\\\Filesystem::initMountPoints('AD93E318-DE5F-4...')\\\\n#1 \\\\\\/usr\\\\\\/local\\\\\\/rms\\\\\\/evt\\\\\\/rdrive\\\\\\/releases\\\\\\/core_201507300859_de037a0\\\\\\/apps\\\\\\/files_sharing\\\\\\/lib\\\\\\/cache.php(89): OC\\\\\\\\Files\\\\\\\\Cache\\\\\\\\Shared_Cache->getSourceCache('')\\\\n#2 \\\\\\/usr\\\\\\/local\\\\\\/rms\\\\\\/evt\\\\\\/rdrive\\\\\\/releases\\\\\\/core_201507300859_de037a0\\\\\\/lib\\\\\\/private\\\\\\/files\\\\\\/view.php(1003): OC\\\\\\\\Files\\\\\\\\Cache\\\\\\\\Shared_Cache->get('')\\\\n#3 \\\\\\/usr\\\\\\/local\\\\\\/rms\\\\\\/evt\\\\\\/rdrive\\\\\\/releases\\\\\\/core_201507300859_de037a0\\\\\\/lib\\\\\\/private\\\\\\/files\\\\\\/filesystem.php(802): OC\\\\\\\\Files\\\\\\\\View->getFileInfo('\\\\\\/', true)\\\\n#4 \\\\\\/usr\\\\\\/local\\\\\\/rms\\\\\\/evt\\\\\\/rdrive\\\\\\/releases\\\\\\/core_201507300859_de037a0\\\\\\/apps\\\\\\/files\\\\\\/ajax\\\\\\/list.php(12): OC\\\\\\\\Files\\\\\\\\Filesystem::getFileInfo('\\\\\\/')\\\\n#5 \\\\\\/usr\\\\\\/local\\\\\\/rms\\\\\\/evt\\\\\\/rdrive\\\\\\/releases\\\\\\/core_201507300859_de037a0\\\\\\/lib\\\\\\/private\\\\\\/route\\\\\\/route.php(135) : runtime-created function(1): require_once('\\\\\\/usr\\\\\\/local\\\\\\/rms\\\\\\/...')\\\\n#6 [internal function]: __lambda_func(Array)\\\\n#7 \\\\\\/usr\\\\\\/local\\\\\\/rms\\\\\\/evt\\\\\\/rdrive\\\\\\/releases\\\\\\/core_201507300859_de037a0\\\\\\/lib\\\\\\/private\\\\\\/route\\\\\\/router.php(252): call_user_func('\\\\\\\\x00lambda_327', Array)\\\\n#8 \\\\\\/usr\\\\\\/local\\\\\\/rms\\\\\\/evt\\\\\\/rdrive\\\\\\/releases\\\\\\/core_201507300859_de037a0\\\\\\/lib\\\\\\/base.php(824): OC\\\\\\\\Route\\\\\\\\Router->match('\\\\\\/apps\\\\\\/files\\\\\\/aja...')\\\\n#9 \\\\\\/usr\\\\\\/local\\\\\\/rms\\\\\\/evt\\\\\\/rdrive\\\\\\/releases\\\\\\/core_201507300859_de037a0\\\\\\/index.php(36): OC::handleRequest()\\\\n#10 {main}\\\",\\\"File\\\":\\\"\\\\\\/usr\\\\\\/local\\\\\\/rms\\\\\\/evt\\\\\\/rdrive\\\\\\/releases\\\\\\/core_201507300859_de037a0\\\\\\/lib\\\\\\/private\\\\\\/files\\\\\\/filesystem.php\\\",\\\"Line\\\":347}\",\"level\":4,\"time\":\"2015-07-30T09:45:31+09:00\"}\r\n```\r\n\r\n#### Browser log\r\n![capture 2015-07-05 at 16 34 51](https://cloud.githubusercontent.com/assets/11423070/9003224/246b9cfe-37a7-11e5-8dd6-59e431d4316b.png)\r\n\r\nFrom ownCloud 8, `lib/private/files/filesystem.php` is changed and emit exception on line 347. It makes loading top page stop. Now we added `return` before the exception and it looks working well. "},"comment":{"url":"https://api.github.com/repos/owncloud/core/issues/comments/126824533","html_url":"https://github.com/owncloud/core/issues/18005#issuecomment-126824533","issue_url":"https://api.github.com/repos/owncloud/core/issues/18005","id":126824533,"user":{"login":"blizzz","id":2184312,"avatar_url":"https://avatars.githubusercontent.com/u/2184312?v=3","gravatar_id":"","url":"https://api.github.com/users/blizzz","html_url":"https://github.com/blizzz","followers_url":"https://api.github.com/users/blizzz/followers","following_url":"https://api.github.com/users/blizzz/following{/other_user}","gists_url":"https://api.github.com/users/blizzz/gists{/gist_id}","starred_url":"https://api.github.com/users/blizzz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blizzz/subscriptions","organizations_url":"https://api.github.com/users/blizzz/orgs","repos_url":"https://api.github.com/users/blizzz/repos","events_url":"https://api.github.com/users/blizzz/events{/privacy}","received_events_url":"https://api.github.com/users/blizzz/received_events","type":"User","site_admin":false},"created_at":"2015-07-31T22:08:01Z","updated_at":"2015-07-31T22:08:01Z","body":"To elaborate: if any user is deleted, the user's owned files are not accessible by others. If the user is still available on LDAP (login may be prohibited), this is also supposed to work. It would rather be an feature request to keep shared files before totally deleting a user (which for external user backend is getting more tricky). Wasn't there even one?"}}