RTC bug Webservices PR-5.4-dev Pending

User tests: Successful: Unsuccessful:

avatar alikon
alikon
22 Jan 2026

Pull Request for Issue #46721 .

Summary of Changes

Add null check before converting rules to array

Testing Instructions

Run API GET call /users/levels/ID with non-existing ID,

Actual result BEFORE applying this Pull Request

HTTP Status 500 Internal server error

Expected result AFTER applying this Pull Request

{
    "errors": [
        {
            "title": "Resource not found",
            "code": 404
        }
    ]
}

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

avatar alikon alikon - open - 22 Jan 2026
avatar alikon alikon - change - 22 Jan 2026
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 22 Jan 2026
Category Administration com_users
avatar exlemor exlemor - test_item - 22 Jan 2026 - Tested successfully
avatar exlemor
exlemor - comment - 22 Jan 2026

I have tested this item ✅ successfully on b627b5a

I have tested this successfully and tried a few 'out of bounds' queries and they came back Resource not found as expected thanks to you @alikon!


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

avatar OctavianC OctavianC - test_item - 23 Jan 2026 - Tested successfully
avatar OctavianC
OctavianC - comment - 23 Jan 2026

I have tested this item ✅ successfully on b627b5a

Without patch:

Error: Attempt to assign property \"rules\" on false in D:\\wamp64\\www\\j514\\administrator\\components\\com_users\\src\\Model\\LevelModel.php:179

With patch:

404 Resource not found, which is expected.


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

avatar richard67 richard67 - change - 23 Jan 2026
Labels Added: bug Webservices PR-5.4-dev
avatar richard67 richard67 - change - 23 Jan 2026
Status Pending Ready to Commit
avatar richard67
richard67 - comment - 23 Jan 2026

RTC


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

avatar muhme
muhme - comment - 23 Jan 2026

✅ Final test before merge with JBT

  • Seen 500 before PR
  • Applied PR with Patch Tester
  • Seen HTTP status 404 and 'Resource not found' for non-existing ID
  • Requests with existing user access level IDs are working
avatar muhme muhme - change - 23 Jan 2026
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2026-01-23 11:58:04
Closed_By muhme
Labels Added: RTC
avatar muhme muhme - close - 23 Jan 2026
avatar muhme muhme - merge - 23 Jan 2026
avatar muhme
muhme - comment - 23 Jan 2026

Thank you @alikon for your contribution. Thank you @exlemor and @OctavianC for testing.

Add a Comment

Login with GitHub to post a comment