{"action":"created","issue":{"url":"https://api.github.com/repos/owncloud/core/issues/21226","labels_url":"https://api.github.com/repos/owncloud/core/issues/21226/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/core/issues/21226/comments","events_url":"https://api.github.com/repos/owncloud/core/issues/21226/events","html_url":"https://github.com/owncloud/core/issues/21226","id":122483901,"number":21226,"title":"@PublicPage routes no longer work in latest master (1d932e4)","user":{"login":"Commenter123","id":13712808,"avatar_url":"https://avatars.githubusercontent.com/u/13712808?v=3","gravatar_id":"","url":"https://api.github.com/users/Commenter123","html_url":"https://github.com/Commenter123","followers_url":"https://api.github.com/users/Commenter123/followers","following_url":"https://api.github.com/users/Commenter123/following{/other_user}","gists_url":"https://api.github.com/users/Commenter123/gists{/gist_id}","starred_url":"https://api.github.com/users/Commenter123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Commenter123/subscriptions","organizations_url":"https://api.github.com/users/Commenter123/orgs","repos_url":"https://api.github.com/users/Commenter123/repos","events_url":"https://api.github.com/users/Commenter123/events{/privacy}","received_events_url":"https://api.github.com/users/Commenter123/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/owncloud/core/labels/bug","name":"bug","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":624,"closed_issues":712,"state":"open","created_at":"2015-07-07T14:21:23Z","updated_at":"2015-12-16T16:45:36Z","due_on":"2016-03-08T04:00:00Z","closed_at":null},"comments":7,"created_at":"2015-12-16T11:31:55Z","updated_at":"2015-12-16T16:52:34Z","closed_at":null,"body":"routes.php:\r\n```php\r\nreturn [\r\n\t'routes' => [\r\n\t\t['name' => 'site#index', 'url' => '/', 'verb' => 'GET'],\r\n\t\t['name' => 'site#test', 'url' => '/test', 'verb' => 'GET'],\r\n\t],\r\n];\r\n```\r\n\r\nMethods in sitecontroller.php:\r\n```php\r\n/**\r\n * @NoAdminRequired\r\n * @NoCSRFRequired\r\n * @PublicPage\r\n */\r\npublic function index() {\r\n\treturn new TemplateResponse('myapp', 'index', array());\r\n}\r\n\r\n/**\r\n * @NoAdminRequired\r\n * @NoCSRFRequired\r\n * @PublicPage\r\n */\r\npublic function test() {\r\n\treturn new TemplateResponse('myapp', 'test', array());\r\n}\r\n```\r\n\r\nWhen opening `/index.php/apps/myapp/` in browser, I get `Internal Server Error 500`.\r\n\r\nBrowser devconsole:\r\n```text\r\nUncaught ReferenceError: oc_appconfig is not defined - shareconfigmodel.js:22\r\n```\r\n\r\ndata/owncloud.log:\r\n```text\r\n{\"reqId\":\"M3ZwmWQHU97piZmGEIAh\",\"remoteAddr\":\"127.0.0.1\",\"app\":\"index\",\"message\":\"Exception: {\\\"Exception\\\":\\\"Exception\\\",\\\"Message\\\":\\\"user does not exist\\\",\\\"Code\\\":0,\\\"Trace\\\":\\\"#0 \\\\\\/storage\\\\\\/users\\\\\\/myusername\\\\\\/Documents\\\\\\/git\\\\\\/owncloud\\\\\\/latest\\\\\\/lib\\\\\\/private\\\\\\/helper.php(202): OC\\\\\\\\AvatarManager->getAvatar(false)\\\\n#1 \\\\\\/storage\\\\\\/users\\\\\\/myusername\\\\\\/Documents\\\\\\/git\\\\\\/owncloud\\\\\\/latest\\\\\\/lib\\\\\\/private\\\\\\/templatelayout.php(139): OC_Helper::userAvatarSet(false)\\\\n#2 \\\\\\/storage\\\\\\/users\\\\\\/myusername\\\\\\/Documents\\\\\\/git\\\\\\/owncloud\\\\\\/latest\\\\\\/lib\\\\\\/private\\\\\\/template.php(224): OC_TemplateLayout->__construct('user', 'myapp')\\\\n#3 \\\\\\/storage\\\\\\/users\\\\\\/myusername\\\\\\/Documents\\\\\\/git\\\\\\/owncloud\\\\\\/latest\\\\\\/lib\\\\\\/public\\\\\\/appframework\\\\\\/http\\\\\\/templateresponse.php(156): OC_Template->fetchPage()\\\\n#4 \\\\\\/storage\\\\\\/users\\\\\\/myusername\\\\\\/Documents\\\\\\/git\\\\\\/owncloud\\\\\\/latest\\\\\\/lib\\\\\\/private\\\\\\/appframework\\\\\\/http\\\\\\/dispatcher.php(112): OCP\\\\\\\\AppFramework\\\\\\\\Http\\\\\\\\TemplateResponse->render()\\\\n#5 \\\\\\/storage\\\\\\/users\\\\\\/myusername\\\\\\/Documents\\\\\\/git\\\\\\/owncloud\\\\\\/latest\\\\\\/lib\\\\\\/private\\\\\\/appframework\\\\\\/app.php(110): OC\\\\\\\\AppFramework\\\\\\\\Http\\\\\\\\Dispatcher->dispatch(Object(OCA\\\\\\\\MyApp\\\\\\\\Controller\\\\\\\\SiteController), 'index')\\\\n#6 \\\\\\/storage\\\\\\/users\\\\\\/myusername\\\\\\/Documents\\\\\\/git\\\\\\/owncloud\\\\\\/latest\\\\\\/lib\\\\\\/private\\\\\\/appframework\\\\\\/routing\\\\\\/routeactionhandler.php(45): OC\\\\\\\\AppFramework\\\\\\\\App::main('SiteController', 'index', Object(OC\\\\\\\\AppFramework\\\\\\\\DependencyInjection\\\\\\\\DIContainer), Array)\\\\n#7 [internal function]: OC\\\\\\\\AppFramework\\\\\\\\routing\\\\\\\\RouteActionHandler->__invoke(Array)\\\\n#8 \\\\\\/storage\\\\\\/users\\\\\\/myusername\\\\\\/Documents\\\\\\/git\\\\\\/owncloud\\\\\\/latest\\\\\\/lib\\\\\\/private\\\\\\/route\\\\\\/router.php(297): call_user_func(Object(OC\\\\\\\\AppFramework\\\\\\\\routing\\\\\\\\RouteActionHandler), Array)\\\\n#9 \\\\\\/storage\\\\\\/users\\\\\\/myusername\\\\\\/Documents\\\\\\/git\\\\\\/owncloud\\\\\\/latest\\\\\\/lib\\\\\\/base.php(866): OC\\\\\\\\Route\\\\\\\\Router->match('\\\\\\/apps\\\\\\/myapp\\\\\\/')\\\\n#10 \\\\\\/storage\\\\\\/users\\\\\\/myusername\\\\\\/Documents\\\\\\/git\\\\\\/owncloud\\\\\\/latest\\\\\\/index.php(39): OC::handleRequest()\\\\n#11 {main}\\\",\\\"File\\\":\\\"\\\\\\/storage\\\\\\/users\\\\\\/myusername\\\\\\/Documents\\\\\\/git\\\\\\/owncloud\\\\\\/latest\\\\\\/lib\\\\\\/private\\\\\\/avatarmanager.php\\\",\\\"Line\\\":66}\",\"level\":3,\"time\":\"2015-12-16T11:26:45+00:00\"}\r\n```\r\n\r\nProblem is that OC tries to fetch an avatar of user false, which does not exist."},"comment":{"url":"https://api.github.com/repos/owncloud/core/issues/comments/165172906","html_url":"https://github.com/owncloud/core/issues/21226#issuecomment-165172906","issue_url":"https://api.github.com/repos/owncloud/core/issues/21226","id":165172906,"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-12-16T16:52:34Z","updated_at":"2015-12-16T16:52:34Z","body":"@Commenter123 do you happen to know the last revision it worked with?  (git bisect can assist in finding it out)"}}