User tests: Successful: Unsuccessful:
Pull Request for Issue #46721 .
Add null check before converting rules to array
Run API GET call /users/levels/ID with non-existing ID,
HTTP Status 500 Internal server error
{
"errors": [
{
"title": "Resource not found",
"code": 404
}
]
}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
| Status | New | ⇒ | Pending |
| Category | ⇒ | Administration com_users |
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.
| Labels |
Added:
bug
Webservices
PR-5.4-dev
|
||
| Status | Pending | ⇒ | Ready to Commit |
RTC
✅ Final test before merge with JBT
| 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
|
||
Thank you @alikon for your contribution. Thank you @exlemor and @OctavianC for testing.
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.