{"action":"created","issue":{"url":"https://api.github.com/repos/nextcloud/server/issues/10316","repository_url":"https://api.github.com/repos/nextcloud/server","labels_url":"https://api.github.com/repos/nextcloud/server/issues/10316/labels{/name}","comments_url":"https://api.github.com/repos/nextcloud/server/issues/10316/comments","events_url":"https://api.github.com/repos/nextcloud/server/issues/10316/events","html_url":"https://github.com/nextcloud/server/issues/10316","id":343134599,"node_id":"MDU6SXNzdWUzNDMxMzQ1OTk=","number":10316,"title":"Error: Call to a member function instanceOfStorage() on null","user":{"login":"jungleran","id":5101533,"node_id":"MDQ6VXNlcjUxMDE1MzM=","avatar_url":"https://avatars0.githubusercontent.com/u/5101533?v=4","gravatar_id":"","url":"https://api.github.com/users/jungleran","html_url":"https://github.com/jungleran","followers_url":"https://api.github.com/users/jungleran/followers","following_url":"https://api.github.com/users/jungleran/following{/other_user}","gists_url":"https://api.github.com/users/jungleran/gists{/gist_id}","starred_url":"https://api.github.com/users/jungleran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jungleran/subscriptions","organizations_url":"https://api.github.com/users/jungleran/orgs","repos_url":"https://api.github.com/users/jungleran/repos","events_url":"https://api.github.com/users/jungleran/events{/privacy}","received_events_url":"https://api.github.com/users/jungleran/received_events","type":"User","site_admin":false},"labels":[{"id":389003733,"node_id":"MDU6TGFiZWwzODkwMDM3MzM=","url":"https://api.github.com/repos/nextcloud/server/labels/3.%20to%20review","name":"3. to review","color":"0052cc","default":false},{"id":386379231,"node_id":"MDU6TGFiZWwzODYzNzkyMzE=","url":"https://api.github.com/repos/nextcloud/server/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-07-20T14:43:23Z","updated_at":"2018-10-26T14:05:25Z","closed_at":null,"author_association":"NONE","body":"### Steps to reproduce\r\n\r\n`sudo -u www-data php occ files:scan --all`\r\n\r\n### Expected behaviour\r\n\r\nNo exception.\r\n\r\n### Actual behaviour\r\n\r\nAn unhandled exception has been thrown:\r\nError: Call to a member function instanceOfStorage() on null in /var/www/html/apps/files_sharing/lib/Cache.php:81\r\n\r\n### Server configuration\r\n\r\nOfficial docker image: nextcloud:13.0.4-apache\r\n\r\nRelated PR: Fix Error: Call to a member function instanceOfStorage() on null #10315\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/nextcloud/server/issues/comments/433419284","html_url":"https://github.com/nextcloud/server/issues/10316#issuecomment-433419284","issue_url":"https://api.github.com/repos/nextcloud/server/issues/10316","id":433419284,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMzQxOTI4NA==","user":{"login":"MorrisJobke","id":245432,"node_id":"MDQ6VXNlcjI0NTQzMg==","avatar_url":"https://avatars3.githubusercontent.com/u/245432?v=4","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":"2018-10-26T14:05:25Z","updated_at":"2018-10-26T14:05:25Z","author_association":"MEMBER","body":"The stack trace looks like this:\r\n\r\n```\r\n{\r\n    \"reqId\": \"3gyqIgh7NAK4Tz4HPNJL\",\r\n    \"level\": 3,\r\n    \"time\": \"...\",\r\n    \"remoteAddr\": \"...\",\r\n    \"user\": \"...\",\r\n    \"app\": \"no app in context\",\r\n    \"method\": \"PROPFIND\",\r\n    \"url\": \"/remote.php/webdav/\",\r\n    \"message\": {\r\n        \"Exception\": \"Exception\",\r\n        \"Message\": \"currentStorage should not be null but it is\",\r\n        \"Code\": 0,\r\n        \"Trace\"\r\n        #0 lib/private/Files/Cache/Wrapper/CacheJail.php(69): OCA\\Files_Sharing\\Cache->getRoot()\r\n        #1 lib/private/Files/Cache/Wrapper/CacheJail.php(314): OC\\Files\\Cache\\Wrapper\\CacheJail->getJailedPath(NULL)\r\n        #2 lib/private/Files/View.php(1724): OC\\Files\\Cache\\Wrapper\\CacheJail->getPathById(4819)\r\n        #3 apps/files_sharing/lib/SharedStorage.php(118): OC\\Files\\View->getPath(4819)\r\n        #4 apps/files_sharing/lib/SharedStorage.php(458): OCA\\Files_Sharing\\SharedStorage->init()\\\\n#5 [internal function]: OCA\\Files_Sharing\\SharedStorage->getSourceStorage()\r\n        #6 lib/private/Files/Storage/Wrapper/Wrapper.php(501): call_user_func_array(Array, Array)\r\n        #7 apps/files_sharing/lib/Cache.php(94): OC\\Files\\Storage\\Wrapper\\Wrapper->__call('getSourceStorag...', Array)\r\n        #8 lib/private/Files/Cache/Wrapper/CacheJail.php(313): OCA\\Files_Sharing\\Cache->getCache()\r\n        #9 lib/private/Files/View.php(1724): OC\\Files\\Cache\\Wrapper\\CacheJail->getPathById(4846)\r\n        #10 apps/files_sharing/lib/SharedStorage.php(118): OC\\Files\\View->getPath(4846)\r\n        #11 apps/files_sharing/lib/SharedStorage.php(463): OCA\\Files_Sharing\\SharedStorage->init()\r\n        #12 lib/private/Files/Storage/Wrapper/Wrapper.php(490): OCA\\Files_Sharing\\SharedStorage->getWrapperStorage()\r\n        #13 apps/files_sharing/lib/SharedStorage.php(156): OC\\Files\\Storage\\Wrapper\\Wrapper->instanceOfStorage('\\\\OCP\\\\Files\\\\IHom...')\r\n        #14 lib/private/Files/Storage/Wrapper/Wrapper.php(490): OCA\\Files_Sharing\\SharedStorage->instanceOfStorage('\\\\OCP\\\\Files\\\\IHom...')\r\n        #15 lib/private/Files/FileInfo.php(310): OC\\Files\\Storage\\Wrapper\\Wrapper->instanceOfStorage('\\\\OCP\\\\Files\\\\IHom...')\r\n        #16 apps/dav/lib/Connector/Sabre/Node.php(299): OC\\Files\\FileInfo->isMounted()\r\n        #17 apps/dav/lib/Connector/Sabre/FilesPlugin.php(312): OCA\\DAV\\Connector\\Sabre\\Node->getDavPermissions()\r\n        #18 3rdparty/sabre/dav/lib/DAV/PropFind.php(98): OCA\\DAV\\Connector\\Sabre\\FilesPlugin->OCA\\DAV\\Connector\\Sabre\\{closure}(*** sensitive parameters replaced ***)\r\n        #19 apps/dav/lib/Connector/Sabre/FilesPlugin.php(318): Sabre\\DAV\\PropFind->handle('{http://...', Object(Closure))\\\\n#20 [internal function]: OCA\\DAV\\Connector\\Sabre\\FilesPlugin->handleGetProperties(Object(Sabre\\DAV\\PropFind), Object(OCA\\DAV\\Connector\\Sabre\\Directory))\r\n        #21 3rdparty/sabre/event/lib/EventEmitterTrait.php(105): call_user_func_array(Array, Array)\r\n        #22 3rdparty/sabre/dav/lib/DAV/Server.php(1059): Sabre\\Event\\EventEmitter->emit('propFind', Array)\r\n        #23 3rdparty/sabre/dav/lib/DAV/Server.php(981): Sabre\\DAV\\Server->getPropertiesByNode(Object(Sabre\\DAV\\PropFind), Object(OCA\\DAV\\Connector\\Sabre\\Directory))\r\n        #24 3rdparty/sabre/dav/lib/DAV/Server.php(1666): Sabre\\DAV\\Server->getPropertiesIteratorForPath('', Array, 1)\r\n        #25 3rdparty/sabre/dav/lib/DAV/CorePlugin.php(355): Sabre\\DAV\\Server->generateMultiStatus(Object(Generator), false)\\\\n#26 [internal function]: Sabre\\DAV\\CorePlugin->httpPropFind(Object(Sabre\\HTTP\\Request), Object(Sabre\\HTTP\\Response))\r\n        #27 3rdparty/sabre/event/lib/EventEmitterTrait.php(105): call_user_func_array(Array, Array)\r\n        #28 3rdparty/sabre/dav/lib/DAV/Server.php(479): Sabre\\Event\\EventEmitter->emit('method:PROPFIND', Array)\r\n        #29 3rdparty/sabre/dav/lib/DAV/Server.php(254): Sabre\\DAV\\Server->invokeMethod(Object(Sabre\\HTTP\\Request), Object(Sabre\\HTTP\\Response))\r\n        #30 apps/dav/appinfo/v1/webdav.php(76): Sabre\\DAV\\Server->exec()\r\n        #31 remote.php(162): require_once('/var/www/...')\r\n        #32 {main}\",\r\n        \"File\":\"apps/files_sharing/lib/Cache.php\",\r\n        \"Line\": 81\r\n    },\r\n    \"userAgent\": \"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:62.0) Gecko/20100101 Firefox/62.0\",\r\n    \"version\": \"12.0.5.3\"\r\n}\r\n```"}}
{"actor":{"display_login":"MorrisJobke"}}