Unit/System Tests bug Webservices PR-5.3-dev Pending

User tests: Successful: Unsuccessful:

avatar alikon
alikon
12 Sep 2025

Pull Request for Issue #45971.

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 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 - 12 Sep 2025
avatar alikon alikon - change - 12 Sep 2025
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 12 Sep 2025
Category Administration com_users
avatar alikon alikon - change - 12 Sep 2025
The description was changed
avatar alikon alikon - edited - 12 Sep 2025
avatar richard67 richard67 - change - 12 Sep 2025
Title
[5][webservices] Create a user access level via POST
[5.3] [webservices] Create a user access level via POST
avatar richard67 richard67 - edited - 12 Sep 2025
avatar alikon alikon - change - 14 Sep 2025
Labels Added: bug Webservices PR-5.3-dev
avatar laoneo
laoneo - comment - 14 Sep 2025

Would you mind to add a system test for it?

avatar joomla-cms-bot joomla-cms-bot - change - 15 Sep 2025
Category Administration com_users Administration com_users JavaScript Unit Tests
avatar alikon alikon - change - 15 Sep 2025
Labels Added: Unit/System Tests
avatar alikon
alikon - comment - 15 Sep 2025

added some system test

Add a Comment

Login with GitHub to post a comment