? ? Pending

User tests: Successful: Unsuccessful:

avatar richard67
richard67
22 Jan 2022

Pull Request for Issue #36783 .

Summary of Changes

Fix PHP notices Trying to get property 'rules' of non-object in /libraries/src/Access/Access.php on line 548 and Undefined offset: 33 in /libraries/src/Access/Access.php on line 553 caused by access to unset array element when recursive access rules are fetched.

Testing Instructions

Not sure yet how to reproduce the issue. It might need a broken assets table.

The author of the issue was not really able to provide the necessary details on how it can be reproduced.

But maybe a code review would be sufficient.

Actual result BEFORE applying this Pull Request

See issue #36783 .

Expected result AFTER applying this Pull Request

None of these PHP notices mentioned in issue #36783 .

Documentation Changes Required

None.

avatar richard67 richard67 - open - 22 Jan 2022
avatar richard67 richard67 - change - 22 Jan 2022
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 22 Jan 2022
Category Libraries
avatar bembelimen bembelimen - change - 23 Jan 2022
Labels Added: ?
avatar richard67 richard67 - change - 23 Jan 2022
The description was changed
avatar richard67 richard67 - edited - 23 Jan 2022
avatar richard67 richard67 - change - 23 Jan 2022
Labels Added: ?
Removed: ?
avatar chmst
chmst - comment - 23 Jan 2022

I think the problem was caused by changing something in the database via phpmyadmin, such breaking the asset table. But could not reproduce the effect.


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

avatar chmst
chmst - comment - 23 Jan 2022

I have tested this item successfully on 019abdb

Code review looks good, could not reproduce the described behaviour.


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

avatar chmst chmst - test_item - 23 Jan 2022 - Tested successfully
avatar richard67 richard67 - change - 24 Jan 2022
Title
[4.0] Fix usage of unset parent ID mapping when getting recursive access rules
[4.1] Fix usage of unset parent ID mapping when getting recursive access rules
avatar richard67 richard67 - edited - 24 Jan 2022
avatar Aman21591
Aman21591 - comment - 3 Mar 2022

I have tested this item successfully on 019abdb


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

avatar Aman21591 Aman21591 - test_item - 3 Mar 2022 - Tested successfully
avatar richard67 richard67 - change - 3 Mar 2022
Status Pending Ready to Commit
avatar richard67
richard67 - comment - 3 Mar 2022

RTC


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

avatar laoneo laoneo - change - 11 Mar 2022
Labels Added: ?
avatar laoneo laoneo - change - 11 Mar 2022
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2022-03-11 14:00:45
Closed_By laoneo
avatar laoneo laoneo - close - 11 Mar 2022
avatar laoneo laoneo - merge - 11 Mar 2022
avatar laoneo
laoneo - comment - 11 Mar 2022

Thanks!

Add a Comment

Login with GitHub to post a comment