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.
When user is NOT logged in, menu item should lead to login page.
Menu item leads to 404 Category not found when user NOT logged in. Works fine when user IS logged in.
J3.3.6 clean install
This used to work in J2.5 - you were presented with a login page when trying to access restricited content.
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
I confirm the issue and raise priority
Build | 3.3.6 | ⇒ | 3.4.0-dev |
Easy | No | ⇒ | Yes |
I also confirm the same issue in 2.5.28.
Login page only shows for a Read More
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/
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.
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/
What is the setting Show Unauthorized for com_content?
See https://docs.joomla.org/Restricting_access_to_%22read_more%22
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.
Here "Show Unauthorized" is set to "On". This setting has NO effect on this issue.
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).
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
@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.
Status | New | ⇒ | Confirmed |
Labels |
Added:
?
|
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.
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.
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();
i think the category false comes from https://github.com/joomla/joomla-cms/blob/staging/components/com_content/models/category.php#L337
Status | Confirmed | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2016-08-15 21:24:29 |
Closed_By | ⇒ | rdeutz |
Can you reproduce the issue using present staging:
To test install a new site with
https://github.com/joomla/joomla-cms/archive/staging.zip