{"action":"opened","issue":{"url":"https://api.github.com/repos/joomla/joomla-cms/issues/11697","repository_url":"https://api.github.com/repos/joomla/joomla-cms","labels_url":"https://api.github.com/repos/joomla/joomla-cms/issues/11697/labels{/name}","comments_url":"https://api.github.com/repos/joomla/joomla-cms/issues/11697/comments","events_url":"https://api.github.com/repos/joomla/joomla-cms/issues/11697/events","html_url":"https://github.com/joomla/joomla-cms/issues/11697","id":172289197,"number":11697,"title":"infinite loop: Default menu item (home) set to category block which has non public access level ","user":{"login":"Hg347","id":21147024,"avatar_url":"https://avatars.githubusercontent.com/u/21147024?v=3","gravatar_id":"","url":"https://api.github.com/users/Hg347","html_url":"https://github.com/Hg347","followers_url":"https://api.github.com/users/Hg347/followers","following_url":"https://api.github.com/users/Hg347/following{/other_user}","gists_url":"https://api.github.com/users/Hg347/gists{/gist_id}","starred_url":"https://api.github.com/users/Hg347/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hg347/subscriptions","organizations_url":"https://api.github.com/users/Hg347/orgs","repos_url":"https://api.github.com/users/Hg347/repos","events_url":"https://api.github.com/users/Hg347/events{/privacy}","received_events_url":"https://api.github.com/users/Hg347/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/joomla/joomla-cms/labels/No%20Code%20Attached%20Yet","name":"No Code Attached Yet","color":"ededed"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-20T20:27:00Z","updated_at":"2016-08-20T20:27:01Z","closed_at":null,"body":"\r\nThere is an infinite loop when attempting to load a joomla url, if\r\n* the site is in offline mode\r\n* the default link destination is a category with restricted access level (non-public)\r\n\r\n### Steps to reproduce the issue\r\n0. Set your site to  \"Offline mode\" in Joomla config\r\n1. create category with access level \"registered\"\r\n2. create a menu with menu item \r\n3. let menu item point to category blog with category created at step 1\r\n4. set menu item as default\r\n5. open website in browser as unregistered visitor\r\n\r\n\r\n\r\n### Expected result\r\nThere are several alternatives to solve this:\r\n1. abort attempt to set the default page to an restricted item\r\n   present an error message to the user.\r\n2. detect this misconfiguration on page load and abort it with \"Forbidden\" 403 error\r\n\r\n\r\n\r\n### Actual result\r\n* The result is a long loading time which ends in firefox error: \"error: redirect error\"\r\n\"Die aufgerufene Website leitet die Anfrage so um, dass sie nie beendet werden kann.\"\r\n* If the website is not in offline mode, the result is \"404 - Category not found\"\r\n* If the default destination is an article instead of a category, the error is\r\nshort text on the offline site \" Error You are not authorised to view this resource.\"\r\n* In online mode of joomla, the error is \"You are not authorised to view this resource.\"\r\n\r\n### System information (as much as possible)\r\nJoomla 3.6.2, Apache 2.4.20, PHP 7.0.6 (cgi-fcgi),\r\nUser Agent Mozilla/5.0 (Firefox 48.0)\r\n\r\n\r\n### Additional comments\r\nWould be nice to have a common error handling and error message in all cases:\r\n* online / offline joomla site\r\n* restricted article as default destination\r\n* restricted category as default destination\r\n"}}
{"actor":{"display_login":"Hg347"}}