? Pending

User tests: Successful: Unsuccessful:

avatar joomdonation
joomdonation
5 Dec 2017

Pull Request for Issue #18927.

Summary of Changes

This PR fixes "Call to a member function getChildren() on null" Error for modern routing when Joomla parses a SEF URL which is linked to a category which user doesn't have access to. See #18927 for issue description

Technical, this PR does two things:

  1. Add 'access' => false to JCategories::getInstance method calls so that access level is not checked when getting category

  2. Add a check to make sure a valid category is returned before calling later code (avoid fatal error)

Testing Instructions

  1. Confirm the issue described at #18927

  2. Apply patch, confirm the issue is fixed

Ping @justinherrin for testing since he reported the issue.

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
5.00

avatar joomdonation joomdonation - open - 5 Dec 2017
avatar joomdonation joomdonation - change - 5 Dec 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 5 Dec 2017
Category Front End com_contact com_content com_newsfeeds
avatar joomdonation
joomdonation - comment - 5 Dec 2017

Drone is showing a strange error http://ci.joomla.org/joomla/joomla-cms/1468. Maybe it needs to be re-started?

avatar justinherrin justinherrin - test_item - 5 Dec 2017 - Tested successfully
avatar justinherrin
justinherrin - comment - 5 Dec 2017

I have tested this item successfully on e45c812

I was able to test this patch successfully! I tried the following URLs, and all successfully redirected me to login page, and then back to the original URL once I was logged in :)

domain.com/test-category-menu-item-alias/test-article-alias
domain.com/test-category-menu-item-alias/test-sub-category-alias
domain.com/test-category-menu-item-alias/test-sub-category-alias/test-sub-category-article-alias

I was also tried each URL with the parameter to keep IDs in URLs in those worked too.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/18983.
avatar csthomas csthomas - test_item - 6 Dec 2017 - Tested successfully
avatar csthomas
csthomas - comment - 6 Dec 2017

I have tested this item successfully on e45c812


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

avatar csthomas
csthomas - comment - 6 Dec 2017

I have tested this item successfully on e45c812


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

avatar franz-wohlkoenig franz-wohlkoenig - change - 6 Dec 2017
Status Pending Ready to Commit
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 6 Dec 2017

Ready to Commit after two successful tests.

avatar mbabker mbabker - close - 6 Dec 2017
avatar mbabker mbabker - merge - 6 Dec 2017
avatar mbabker mbabker - change - 6 Dec 2017
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2017-12-06 14:43:01
Closed_By mbabker
Labels Added: ?

Add a Comment

Login with GitHub to post a comment