?
avatar Hg347
Hg347
20 Aug 2016

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

  1. Set your site to "Offline mode" in Joomla config
  2. create category with access level "registered"
  3. create a menu with menu item
  4. let menu item point to category blog with category created at step 1
  5. set menu item as default
  6. open website in browser as unregistered visitor

Expected result

There are several alternatives to solve this:

  1. abort attempt to set the default page to an restricted item
    present an error message to the user.
  2. 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
avatar Hg347 Hg347 - open - 20 Aug 2016
avatar brianteeman brianteeman - change - 20 Aug 2016
Title
infinite loop: Default menu item (home) set to category blog which has non public access level
infinite loop: Default menu item (home) set to category block which has non public access level
avatar brianteeman brianteeman - edited - 20 Aug 2016
avatar brianteeman brianteeman - change - 27 Aug 2016
The description was changed
Title
infinite loop: Default menu item (home) set to category block which has non public access level
infinite loop: Default menu item (home) set to category blog which has non public access level
avatar brianteeman brianteeman - change - 27 Aug 2016
Title
infinite loop: Default menu item (home) set to category block which has non public access level
infinite loop: Default menu item (home) set to category blog which has non public access level
avatar brianteeman brianteeman - edited - 27 Aug 2016
avatar brianteeman brianteeman - change - 27 Aug 2016
Status New Confirmed
avatar brianteeman
brianteeman - comment - 27 Aug 2016

Confirmed


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/11697.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 31 Jan 2017

Looks like Issue is solved cause on 3.7-staging got 403 - You are not authorised to view this resource.

avatar brianteeman
brianteeman - comment - 21 May 2017

I am closing this at this time as it has been reported to have been fixed elsewhere - if that is not the case it can always be reopned

avatar brianteeman brianteeman - change - 21 May 2017
The description was changed
Status Confirmed Closed
Closed_Date 0000-00-00 00:00:00 2017-05-21 09:14:45
Closed_By brianteeman
avatar brianteeman brianteeman - close - 21 May 2017

Add a Comment

Login with GitHub to post a comment