Unit/System Tests PR-5.4-dev Pending

User tests: Successful: Unsuccessful:

avatar alikon
alikon
9 May 2026

Pull Request resolves #45971 follow-up #46080

  • I read the Generative AI policy and my contribution is either not created with the help of AI or is compatible with the policy and GNU/GPL 2 or later.

Summary of Changes

fixed form level.xml

Testing Instructions

use the POST with endpoint /api/index.php/v1/users/levels with this payload to create a User Access Level

{
"id":"0",
"title": "aaTechnician",
"rules": [1,2]
}

Actual result BEFORE applying this Pull Request

HTTP 400 Bad request

{
    "errors": [
        {
            "title": "Field required: id"
        }
    ]
}

Expected result AFTER applying this Pull Request

HTTP 200 ok

{
    "links": {
        "self": "https://localhost:80/api/index.php/v1/users/levels"
    },
    "data": {
        "type": "levels",
        "id": "16",
        "attributes": {
            "id": 16,
            "title": "aaTechnician",
            "rules": [
                1,
                2
            ]
        }
    }
}

Link to documentations

Please select:

  • Documentation link for guide.joomla.org:

  • No documentation changes for guide.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

avatar alikon alikon - open - 9 May 2026
avatar alikon alikon - change - 9 May 2026
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 9 May 2026
Category Administration com_users JavaScript Unit Tests
avatar alikon alikon - change - 9 May 2026
The description was changed
avatar alikon alikon - edited - 9 May 2026
avatar alikon alikon - change - 9 May 2026
The description was changed
avatar alikon alikon - edited - 9 May 2026
avatar alikon alikon - change - 10 May 2026
Labels Added: Unit/System Tests PR-5.4-dev
avatar alikon alikon - change - 10 May 2026
Title
Create a user access level via POST
[5.4] [webservices] Create a user access level via POST
avatar alikon alikon - edited - 10 May 2026
avatar alikon alikon - change - 10 May 2026
The description was changed
avatar alikon alikon - edited - 10 May 2026
avatar alikon alikon - change - 10 May 2026
The description was changed
avatar alikon alikon - edited - 10 May 2026
avatar adarshdubey03 adarshdubey03 - test_item - 10 May 2026 - Tested successfully
avatar adarshdubey03
adarshdubey03 - comment - 10 May 2026

I have tested this item ✅ successfully on 30d4895

Tested Successfully!
Before the patch:

{
"errors": [
{
"title": "Field required: id"
}
]
}
And after the patch:

{
"links": {
"self": "http://localhost/joomla-cms/api/index.php/v1/users/levels"
},
"data": {
"type": "levels",
"id": "7",
"attributes": {
"id": 7,
"title": "aaTechnician",
"rules": [
1,
2
]
}
}
}


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

avatar adarshdubey03
adarshdubey03 - comment - 10 May 2026

I have tested this item ✅ successfully on 30d4895

Tested Successfully!
Before the patch:

{
"errors": [
{
"title": "Field required: id"
}
]
}
And after the patch:

{
"links": {
"self": "http://localhost/joomla-cms/api/index.php/v1/users/levels"
},
"data": {
"type": "levels",
"id": "7",
"attributes": {
"id": 7,
"title": "aaTechnician",
"rules": [
1,
2
]
}
}
}


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

avatar QuyTon QuyTon - test_item - 24 May 2026 - Tested successfully
avatar QuyTon
QuyTon - comment - 24 May 2026

I have tested this item ✅ successfully on 30d4895


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

avatar QuyTon
QuyTon - comment - 24 May 2026

I have tested this item ✅ successfully on 30d4895


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

avatar QuyTon QuyTon - change - 24 May 2026
Status Pending Ready to Commit
avatar QuyTon
QuyTon - comment - 24 May 2026

RTC


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

avatar QuyTon
QuyTon - comment - 24 May 2026

RTC


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

Add a Comment

Login with GitHub to post a comment