?
avatar virusyscorp
virusyscorp
18 Dec 2014

Steps to reproduce the issue

Clean install 3.3.6 w/ English sample content - make both category and page in it with registered permissions. Make new public menu item to category.

Expected result

When user is NOT logged in, menu item should lead to login page.

Actual result

Menu item leads to 404 Category not found when user NOT logged in. Works fine when user IS logged in.

System information (as much as possible)

J3.3.6 clean install

Additional comments

This used to work in J2.5 - you were presented with a login page when trying to access restricited content.

Votes

# of Users Experiencing Issue
2/2
Average Importance Score
2.50

avatar virusyscorp virusyscorp - open - 18 Dec 2014
avatar infograf768
infograf768 - comment - 18 Dec 2014

Can you reproduce the issue using present staging:
To test install a new site with
https://github.com/joomla/joomla-cms/archive/staging.zip

avatar virusyscorp
virusyscorp - comment - 18 Dec 2014

The issue is there with present staging – just tested it

From: infograf768 [mailto:notifications@github.com]
Sent: Thursday, December 18, 2014 10:23 AM
To: joomla/joomla-cms
Cc: virusyscorp
Subject: Re: [joomla-cms] Public menu item to restricted content gives 404 (#5466)

Can you reproduce the issue using present staging:
To test install a new site with
https://github.com/joomla/joomla-cms/archive/staging.zip


Reply to this email directly or view it on GitHub #5466 (comment) . https://github.com/notifications/beacon/AJwjRiqROx2XV8Bz6-c_K859bcKgIdiGks5nYujdgaJpZM4DKBoJ.gif

avatar infograf768
infograf768 - comment - 20 Dec 2014

I confirm the issue and raise priority


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/5466.
avatar infograf768 infograf768 - change - 20 Dec 2014
Build 3.3.6 3.4.0-dev
Easy No Yes
avatar infograf768
infograf768 - comment - 20 Dec 2014

I also confirm the same issue in 2.5.28.

Login page only shows for a Read More


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/5466.
avatar brianteeman
brianteeman - comment - 20 Dec 2014

Isnt this the expected behaviour.

There were many discussions on this in the past and Elin was always
insistent that this was the correct thing to do. (Not saying that I agree)

On 20 December 2014 at 08:22, infograf768 notifications@github.com wrote:

I also confirm the same issue in 2.5.28.

Login page only shows for a Read More

This comment was created with the J!Tracker Application
https://github.com/joomla/jissues at issues.joomla.org/joomla-cms/5466
http://issues.joomla.org/tracker/joomla-cms/5466.


Reply to this email directly or view it on GitHub
#5466 (comment).

Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
http://brian.teeman.net/

avatar infograf768
infograf768 - comment - 20 Dec 2014

Not sure how to change this behavior, but I disagree with it being the correct thing to do.
IMHO, a 404 should only be displayed when the item does not exist, not when one has no access.
We should be consistent with the Read More functionnality.

avatar brianteeman
brianteeman - comment - 20 Dec 2014

I agree it is the wrong behaviour

See Joomlacode for multiple reports of this and discussions

On 20 December 2014 at 09:47, infograf768 notifications@github.com wrote:

Not sure how to change this behavior, but I disagree with it being the
correct thing to do.
IMHO, a 404 should only be displayed when the item does not exist, not
when one has no access.
We should be consistent with the Read More functionnality.


Reply to this email directly or view it on GitHub
#5466 (comment).

Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
http://brian.teeman.net/

avatar sovainfo
sovainfo - comment - 20 Dec 2014

What is the setting Show Unauthorized for com_content?
See https://docs.joomla.org/Restricting_access_to_%22read_more%22

avatar virusyscorp
virusyscorp - comment - 21 Dec 2014

It is off - set to "No"

Sent from my Verizon Wireless 4G LTE DROID

sovainfo notifications@github.com wrote:

What is the setting Show Unauthorized for com_content?
See https://docs.joomla.org/Restricting_access_to_%22read_more%22


Reply to this email directly or view it on GitHub.

avatar infograf768
infograf768 - comment - 21 Dec 2014

Here "Show Unauthorized" is set to "On". This setting has NO effect on this issue.

avatar brianteeman
brianteeman - comment - 21 Dec 2014

Do you have a readmore. According to the docs if you have show unauthorised
links AND a readmore then the page will display the content before the
readmore and you are then required to login to see the rest.
On 21 Dec 2014 07:56, "infograf768" notifications@github.com wrote:

Here "Show Unauthorized" is set to "On". This setting has NO effect on
this issue.


Reply to this email directly or view it on GitHub
#5466 (comment).

avatar virusyscorp
virusyscorp - comment - 21 Dec 2014

No read-more’s – the menu link is to a category list with registered permissions on the categories. Get a 404 as if the categories are not there. When logged in, the link works as expected.

From: Brian Teeman [mailto:notifications@github.com]
Sent: Sunday, December 21, 2014 5:36 AM
To: joomla/joomla-cms
Cc: virusyscorp
Subject: Re: [joomla-cms] Public menu item to restricted content gives 404 (#5466)

Do you have a readmore. According to the docs if you have show unauthorised
links AND a readmore then the page will display the content before the
readmore and you are then required to login to see the rest.
On 21 Dec 2014 07:56, "infograf768" notifications@github.com wrote:

Here "Show Unauthorized" is set to "On". This setting has NO effect on
this issue.


Reply to this email directly or view it on GitHub
#5466 (comment).


Reply to this email directly or view it on GitHub #5466 (comment) . https://github.com/notifications/beacon/AJwjRgg09TluV6r97cQjBXhrpbjCOHneks5nZpotgaJpZM4DKBoJ.gif

avatar infograf768
infograf768 - comment - 22 Dec 2014

@brianteeman
The Read More is not concerned here. We are speaking about displaying a Category (blog or list). As the Category is set to "Registered", we get a 404 instead of a login.

avatar brianteeman brianteeman - change - 3 Jan 2015
Status New Confirmed
avatar brianteeman brianteeman - change - 3 Jan 2015
Labels Added: ?
avatar oyeaussie
oyeaussie - comment - 30 Mar 2015

Any update on this issue? we ran into the same issue due to parent category permission which did not allow the group (public), so if we access a direct sub-menu without login, it would give us 404. Instead redirecting to login page would help.

avatar pe7er
pe7er - comment - 7 May 2016

I was able to reproduce the issue with Joomla 3.6.0-dev with default test data:
1. Category "Park Blog" access level set to registered
2. Articles in "Park Blog" set to public
3. Menu item of type Category Blog with access level public:

On front-end: > All Front End Views > clicking on "Article Category Blog" will result in a 404 error.


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

avatar pe7er
pe7er - comment - 7 May 2016

Not sure how to solve this. The 404 is triggered in libraries/legacy/view/category.php because $category is empty:
public function commonCategoryDisplay()
{
if ($category == false)
{
return JError::raiseError(404, JText::_('JGLOBAL_CATEGORY_NOT_FOUND'));
}

That library is called from components/com_content/views/category/view.html.php
public function display($tpl = null)
{
parent::commonCategoryDisplay();


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

avatar andrepereiradasilva
andrepereiradasilva - comment - 13 May 2016
avatar rdeutz
rdeutz - comment - 15 Aug 2016

Closing this here because we have a PR #11624

avatar rdeutz rdeutz - change - 15 Aug 2016
Status Confirmed Closed
Closed_Date 0000-00-00 00:00:00 2016-08-15 21:24:29
Closed_By rdeutz
avatar rdeutz rdeutz - close - 15 Aug 2016

Add a Comment

Login with GitHub to post a comment