There is an infinite loop when attempting to load a joomla url, if
- the site is in offline mode
- the default link destination is a category with restricted access level (non-public)
Steps to reproduce the issue
- Set your site to "Offline mode" in Joomla config
- create category with access level "registered"
- create a menu with menu item
- let menu item point to category blog with category created at step 1
- set menu item as default
- open website in browser as unregistered visitor
Expected result
There are several alternatives to solve this:
- abort attempt to set the default page to an restricted item
present an error message to the user.
- detect this misconfiguration on page load and abort it with "Forbidden" 403 error
Actual result
- The result is a long loading time which ends in firefox error: "error: redirect error"
"Die aufgerufene Website leitet die Anfrage so um, dass sie nie beendet werden kann."
- If the website is not in offline mode, the result is "404 - Category not found"
- If the default destination is an article instead of a category, the error is
short text on the offline site " Error You are not authorised to view this resource."
- In online mode of joomla, the error is "You are not authorised to view this resource."
System information (as much as possible)
Joomla 3.6.2, Apache 2.4.20, PHP 7.0.6 (cgi-fcgi),
User Agent Mozilla/5.0 (Firefox 48.0)
Additional comments
Would be nice to have a common error handling and error message in all cases:
- online / offline joomla site
- restricted article as default destination
- restricted category as default destination
Confirmed
This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/11697.