{"action":"created","issue":{"url":"https://api.github.com/repos/owncloud/core/issues/22467","repository_url":"https://api.github.com/repos/owncloud/core","labels_url":"https://api.github.com/repos/owncloud/core/issues/22467/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/core/issues/22467/comments","events_url":"https://api.github.com/repos/owncloud/core/issues/22467/events","html_url":"https://github.com/owncloud/core/issues/22467","id":134269681,"number":22467,"title":"Share file from ext storage from LDAP user to regular user, doesn't appear","user":{"login":"PVince81","id":277525,"avatar_url":"https://avatars.githubusercontent.com/u/277525?v=3","gravatar_id":"","url":"https://api.github.com/users/PVince81","html_url":"https://github.com/PVince81","followers_url":"https://api.github.com/users/PVince81/followers","following_url":"https://api.github.com/users/PVince81/following{/other_user}","gists_url":"https://api.github.com/users/PVince81/gists{/gist_id}","starred_url":"https://api.github.com/users/PVince81/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PVince81/subscriptions","organizations_url":"https://api.github.com/users/PVince81/orgs","repos_url":"https://api.github.com/users/PVince81/repos","events_url":"https://api.github.com/users/PVince81/events{/privacy}","received_events_url":"https://api.github.com/users/PVince81/received_events","type":"User","site_admin":false},"labels":[{"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: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/comp:filesystem","name":"comp:filesystem","color":"d4c5f9"},{"url":"https://api.github.com/repos/owncloud/core/labels/regression","name":"regression","color":"e11d21"},{"url":"https://api.github.com/repos/owncloud/core/labels/sev2-high","name":"sev2-high","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/owncloud/core/milestones/48","html_url":"https://github.com/owncloud/core/milestones/9.0-current","labels_url":"https://api.github.com/repos/owncloud/core/milestones/48/labels","id":1196845,"number":48,"title":"9.0-current","description":"","creator":{"login":"cmonteroluque","id":879976,"avatar_url":"https://avatars.githubusercontent.com/u/879976?v=3","gravatar_id":"","url":"https://api.github.com/users/cmonteroluque","html_url":"https://github.com/cmonteroluque","followers_url":"https://api.github.com/users/cmonteroluque/followers","following_url":"https://api.github.com/users/cmonteroluque/following{/other_user}","gists_url":"https://api.github.com/users/cmonteroluque/gists{/gist_id}","starred_url":"https://api.github.com/users/cmonteroluque/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmonteroluque/subscriptions","organizations_url":"https://api.github.com/users/cmonteroluque/orgs","repos_url":"https://api.github.com/users/cmonteroluque/repos","events_url":"https://api.github.com/users/cmonteroluque/events{/privacy}","received_events_url":"https://api.github.com/users/cmonteroluque/received_events","type":"User","site_admin":false},"open_issues":526,"closed_issues":1545,"state":"open","created_at":"2015-07-07T14:21:23Z","updated_at":"2016-02-17T14:09:30Z","due_on":"2016-03-08T04:00:00Z","closed_at":null},"comments":2,"created_at":"2016-02-17T12:46:06Z","updated_at":"2016-02-17T14:12:15Z","closed_at":null,"body":"### Steps to reproduce\r\n\r\n1. Setup LDAP\r\n1. Setup a SFTP external storage \"/sftp\"\r\n1. Create a file \"/sftp/test.txt\"\r\n1. Login as LDAP user\r\n1. Share \"/sftp/test.txt\" with the local admin\r\n1. Login as admin\r\n1. Check if \"test.txt\" appears\r\n\r\n### Expected behaviour\r\n\"test.txt\" must be visible\r\n\r\n### Actual behaviour\r\n\"test.txt not visible\"\r\n\r\n### Version\r\nownCloud 9.0 git master 7b0f83b616246c5274b551ab46b923b0989c464e\r\n\r\n### Logs\r\n```\r\n{\"reqId\":\"Or1fgaw0tn4oF3GlYh91\",\"remoteAddr\":\"127.0.0.1\",\"app\":\"files\",\"message\":\" Backends provided no user object for 0868ad0a-69b1-1035-907c-63e3f77fca33\",\"level\":3,\"time\":\"2016-02-17T12:42:44+00:00\",\"method\":\"GET\",\"url\":\"\\/owncloud\\/index.php\\/apps\\/files\\/\"}\r\n{\"reqId\":\"Or1fgaw0tn4oF3GlYh91\",\"remoteAddr\":\"127.0.0.1\",\"app\":\"core\",\"message\":\"Backends provided no user object for 0868ad0a-69b1-1035-907c-63e3f77fca33\",\"level\":3,\"time\":\"2016-02-17T12:42:44+00:00\",\"method\":\"GET\",\"url\":\"\\/owncloud\\/index.php\\/apps\\/files\\/\"}\r\n{\"reqId\":\"eqy29XkcrWkfpFWV4Ahk\",\"remoteAddr\":\"127.0.0.1\",\"app\":\"files\",\"message\":\" Backends provided no user object for 0868ad0a-69b1-1035-907c-63e3f77fca33\",\"level\":3,\"time\":\"2016-02-17T12:42:44+00:00\",\"method\":\"GET\",\"url\":\"\\/owncloud\\/index.php\\/core\\/js\\/oc.js?v=6954bd568d2f0d10c4f6a8d8da5d9c6d\"}\r\n{\"reqId\":\"eqy29XkcrWkfpFWV4Ahk\",\"remoteAddr\":\"127.0.0.1\",\"app\":\"core\",\"message\":\"Backends provided no user object for 0868ad0a-69b1-1035-907c-63e3f77fca33\",\"level\":3,\"time\":\"2016-02-17T12:42:44+00:00\",\"method\":\"GET\",\"url\":\"\\/owncloud\\/index.php\\/core\\/js\\/oc.js?v=6954bd568d2f0d10c4f6a8d8da5d9c6d\"}\r\n{\"reqId\":\"ecpj+SE\\/a\\/X3IDmfdhUD\",\"remoteAddr\":\"127.0.0.1\",\"app\":\"files\",\"message\":\" Backends provided no user object for 0868ad0a-69b1-1035-907c-63e3f77fca33\",\"level\":3,\"time\":\"2016-02-17T12:42:45+00:00\",\"method\":\"GET\",\"url\":\"\\/owncloud\\/cron.php\"}\r\n{\"reqId\":\"ecpj+SE\\/a\\/X3IDmfdhUD\",\"remoteAddr\":\"127.0.0.1\",\"app\":\"core\",\"message\":\"Backends provided no user object for 0868ad0a-69b1-1035-907c-63e3f77fca33\",\"level\":3,\"time\":\"2016-02-17T12:42:45+00:00\",\"method\":\"GET\",\"url\":\"\\/owncloud\\/cron.php\"}\r\n{\"reqId\":\"Qv5hersvX7FQyEbXRnYZ\",\"remoteAddr\":\"127.0.0.1\",\"app\":\"files\",\"message\":\" Backends provided no user object for 0868ad0a-69b1-1035-907c-63e3f77fca33\",\"level\":3,\"time\":\"2016-02-17T12:42:45+00:00\",\"method\":\"GET\",\"url\":\"\\/owncloud\\/ocs\\/v2.php\\/apps\\/notifications\\/api\\/v1\\/notifications?format=json\"}\r\n{\"reqId\":\"Qv5hersvX7FQyEbXRnYZ\",\"remoteAddr\":\"127.0.0.1\",\"app\":\"core\",\"message\":\"Backends provided no user object for 0868ad0a-69b1-1035-907c-63e3f77fca33\",\"level\":3,\"time\":\"2016-02-17T12:42:45+00:00\",\"method\":\"GET\",\"url\":\"\\/owncloud\\/ocs\\/v2.php\\/apps\\/notifications\\/api\\/v1\\/notifications?format=json\"}\r\n{\"reqId\":\"8vDkxFfMVUZHOQd1wqjq\",\"remoteAddr\":\"127.0.0.1\",\"app\":\"files\",\"message\":\" Backends provided no user object for 0868ad0a-69b1-1035-907c-63e3f77fca33\",\"level\":3,\"time\":\"2016-02-17T12:42:45+00:00\",\"method\":\"GET\",\"url\":\"\\/owncloud\\/index.php\\/avatar\\/root\\/28\"}\r\n{\"reqId\":\"8vDkxFfMVUZHOQd1wqjq\",\"remoteAddr\":\"127.0.0.1\",\"app\":\"core\",\"message\":\"Backends provided no user object for 0868ad0a-69b1-1035-907c-63e3f77fca33\",\"level\":3,\"time\":\"2016-02-17T12:42:45+00:00\",\"method\":\"GET\",\"url\":\"\\/owncloud\\/index.php\\/avatar\\/root\\/28\"}\r\n{\"reqId\":\"cBTW4V2b+b9ZpX2jOqlG\",\"remoteAddr\":\"127.0.0.1\",\"app\":\"files\",\"message\":\" Backends provided no user object for 0868ad0a-69b1-1035-907c-63e3f77fca33\",\"level\":3,\"time\":\"2016-02-17T12:42:46+00:00\",\"method\":\"PROPFIND\",\"url\":\"\\/owncloud\\/remote.php\\/webdav\\/\"}\r\n{\"reqId\":\"cBTW4V2b+b9ZpX2jOqlG\",\"remoteAddr\":\"127.0.0.1\",\"app\":\"core\",\"message\":\"Backends provided no user object for 0868ad0a-69b1-1035-907c-63e3f77fca33\",\"level\":3,\"time\":\"2016-02-17T12:42:46+00:00\",\"method\":\"PROPFIND\",\"url\":\"\\/owncloud\\/remote.php\\/webdav\\/\"}\r\n{\"reqId\":\"JfKgvENdzSuOBirAvoHw\",\"remoteAddr\":\"127.0.0.1\",\"app\":\"files\",\"message\":\" Backends provided no user object for 0868ad0a-69b1-1035-907c-63e3f77fca33\",\"level\":3,\"time\":\"2016-02-17T12:42:46+00:00\",\"method\":\"GET\",\"url\":\"\\/owncloud\\/index.php\\/avatar\\/root\\/28\"}\r\n{\"reqId\":\"JfKgvENdzSuOBirAvoHw\",\"remoteAddr\":\"127.0.0.1\",\"app\":\"core\",\"message\":\"Backends provided no user object for 0868ad0a-69b1-1035-907c-63e3f77fca33\",\"level\":3,\"time\":\"2016-02-17T12:42:46+00:00\",\"method\":\"GET\",\"url\":\"\\/owncloud\\/index.php\\/avatar\\/root\\/28\"}\r\n{\"reqId\":\"7dtbgfZg0FA5c91TMH6Q\",\"remoteAddr\":\"127.0.0.1\",\"app\":\"files\",\"message\":\" Backends provided no user object for 0868ad0a-69b1-1035-907c-63e3f77fca33\",\"level\":3,\"time\":\"2016-02-17T12:42:46+00:00\",\"method\":\"GET\",\"url\":\"\\/owncloud\\/ocs\\/v1.php\\/apps\\/files_external\\/api\\/v1\\/mounts?format=json\"}\r\n{\"reqId\":\"7dtbgfZg0FA5c91TMH6Q\",\"remoteAddr\":\"127.0.0.1\",\"app\":\"core\",\"message\":\"Backends provided no user object for 0868ad0a-69b1-1035-907c-63e3f77fca33\",\"level\":3,\"time\":\"2016-02-17T12:42:46+00:00\",\"method\":\"GET\",\"url\":\"\\/owncloud\\/ocs\\/v1.php\\/apps\\/files_external\\/api\\/v1\\/mounts?format=json\"}\r\n{\"reqId\":\"W+rtpgJI0CtXM+YUukps\",\"remoteAddr\":\"127.0.0.1\",\"app\":\"files\",\"message\":\" Backends provided no user object for 0868ad0a-69b1-1035-907c-63e3f77fca33\",\"level\":3,\"time\":\"2016-02-17T12:42:46+00:00\",\"method\":\"GET\",\"url\":\"\\/owncloud\\/ocs\\/v2.php\\/apps\\/files_sharing\\/api\\/v1\\/shares?subfiles=true&path=%2F&format=json\"}\r\n{\"reqId\":\"W+rtpgJI0CtXM+YUukps\",\"remoteAddr\":\"127.0.0.1\",\"app\":\"core\",\"message\":\"Backends provided no user object for 0868ad0a-69b1-1035-907c-63e3f77fca33\",\"level\":3,\"time\":\"2016-02-17T12:42:46+00:00\",\"method\":\"GET\",\"url\":\"\\/owncloud\\/ocs\\/v2.php\\/apps\\/files_sharing\\/api\\/v1\\/shares?subfiles=true&path=%2F&format=json\"}\r\n{\"reqId\":\"+VUUu9SuANuu533IK11O\",\"remoteAddr\":\"127.0.0.1\",\"app\":\"files\",\"message\":\" Backends provided no user object for 0868ad0a-69b1-1035-907c-63e3f77fca33\",\"level\":3,\"time\":\"2016-02-17T12:42:46+00:00\",\"method\":\"GET\",\"url\":\"\\/owncloud\\/index.php\\/apps\\/files\\/ajax\\/getstoragestats.php?dir=%2F\"}\r\n{\"reqId\":\"+VUUu9SuANuu533IK11O\",\"remoteAddr\":\"127.0.0.1\",\"app\":\"core\",\"message\":\"Backends provided no user object for 0868ad0a-69b1-1035-907c-63e3f77fca33\",\"level\":3,\"time\":\"2016-02-17T12:42:46+00:00\",\"method\":\"GET\",\"url\":\"\\/owncloud\\/index.php\\/apps\\/files\\/ajax\\/getstoragestats.php?dir=%2F\"}\r\n{\"reqId\":\"4nWmWjwIk3dbtp7sLEJJ\",\"remoteAddr\":\"127.0.0.1\",\"app\":\"files\",\"message\":\" Backends provided no user object for 0868ad0a-69b1-1035-907c-63e3f77fca33\",\"level\":3,\"time\":\"2016-02-17T12:42:46+00:00\",\"method\":\"GET\",\"url\":\"\\/owncloud\\/index.php\\/apps\\/files_external\\/userglobalstorages\\/1\"}\r\n{\"reqId\":\"4nWmWjwIk3dbtp7sLEJJ\",\"remoteAddr\":\"127.0.0.1\",\"app\":\"core\",\"message\":\"Backends provided no user object for 0868ad0a-69b1-1035-907c-63e3f77fca33\",\"level\":3,\"time\":\"2016-02-17T12:42:46+00:00\",\"method\":\"GET\",\"url\":\"\\/owncloud\\/index.php\\/apps\\/files_external\\/userglobalstorages\\/1\"}\r\n```\r\n\r\nNote: also happens if you limit the applicables to the LDAP user.\r\n\r\nThat LDAP id is from the sharing LDAP user:\r\n```\r\n*************************** 1. row ***************************\r\n       ldap_dn: uid=zombie0,ou=zombies,dc=owncloud,dc=com\r\n owncloud_name: 0868ad0a-69b1-1035-907c-63e3f77fca33\r\ndirectory_uuid: 0868ad0a-69b1-1035-907c-63e3f77fca33\r\n```\r\n\r\n@davitol @icewind1991 @rullzer @blizzz \r\n\r\nI suspect an issue with initializing received share mounts.\r\nCould also be an issue where the wrong user id format is used when passed to the user manager ?\r\n\r\n\r\n@davitol please confirm whether this is a regression from v8.2.2"},"comment":{"url":"https://api.github.com/repos/owncloud/core/issues/comments/185222046","html_url":"https://github.com/owncloud/core/issues/22467#issuecomment-185222046","issue_url":"https://api.github.com/repos/owncloud/core/issues/22467","id":185222046,"user":{"login":"rullzer","id":45821,"avatar_url":"https://avatars.githubusercontent.com/u/45821?v=3","gravatar_id":"","url":"https://api.github.com/users/rullzer","html_url":"https://github.com/rullzer","followers_url":"https://api.github.com/users/rullzer/followers","following_url":"https://api.github.com/users/rullzer/following{/other_user}","gists_url":"https://api.github.com/users/rullzer/gists{/gist_id}","starred_url":"https://api.github.com/users/rullzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rullzer/subscriptions","organizations_url":"https://api.github.com/users/rullzer/orgs","repos_url":"https://api.github.com/users/rullzer/repos","events_url":"https://api.github.com/users/rullzer/events{/privacy}","received_events_url":"https://api.github.com/users/rullzer/received_events","type":"User","site_admin":false},"created_at":"2016-02-17T14:12:15Z","updated_at":"2016-02-17T14:12:15Z","body":"Yes seems like a UID mapping thing... let me look into this now that LDAP is up and running..."}}