RTC bug Webservices PR-5.4-dev Pending

User tests: Successful: Unsuccessful:

avatar ThomasFinnern
ThomasFinnern
18 Nov 2025

Webservices API config component: Component with numbers in name get code 404 when using route path v1/config/com_first2second

Pull Request for Issue #45780.

Summary of Changes

The get and patch routes input restricts the component name. The input of component names were validated using
regex [A-Za-z_]+. This excluded components with numbers in their name, such as j2xml or something2.

The names are now tested by [A-Za-z0-9_]+

Testing Instructions

Attached is a bare component with config and menu
com_comp2test.zip

Install this component and use curl/postman with API path "v1/config/com_comp2test"
You should be familiar with Joomla API calls and Joomla tokens.

Actual result BEFORE applying this Pull Request

The get routes returns a 404

Expected result AFTER applying this Pull Request

The return of is a json text result. After changing the configuration value com_comp2test, it is also returned.

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

Please be patient, this is my first pull request

avatar ThomasFinnern ThomasFinnern - open - 18 Nov 2025
avatar ThomasFinnern ThomasFinnern - change - 18 Nov 2025
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 18 Nov 2025
Category Front End Plugins
avatar richard67 richard67 - change - 18 Nov 2025
Title
[5.4][6.1][webservices] API config component route: Component with numbers in name … 404
[5.4] [webservices] API config component route: Component with numbers in name … 404
avatar richard67 richard67 - edited - 18 Nov 2025
avatar ThomasFinnern
ThomasFinnern - comment - 19 Nov 2025

@rdeutz How can i fix the unsuccessful tests ?
My changes shouldn't cause this. (added just some characters inside strings)

avatar ThomasFinnern ThomasFinnern - change - 19 Nov 2025
Title
[5.4] [webservices] API config component route: Component with numbers in name … 404
[5.4] [webservices] Fix API config component route: Component with numbers in name … 404
avatar ThomasFinnern ThomasFinnern - edited - 19 Nov 2025
avatar richard67 richard67 - change - 20 Nov 2025
Labels Added: PR-5.4-dev
avatar muhme muhme - test_item - 21 Nov 2025 - Tested successfully
avatar muhme
muhme - comment - 21 Nov 2025

I have tested this item ✅ successfully on e0323cf

with JBT using

curl -H "Authorization: Bearer $TOKEN" 'http://host.docker.internal:7054/api/index.php/v1/config/com_comp2test' | jq

This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46462.
avatar alikon alikon - test_item - 22 Nov 2025 - Tested successfully
avatar alikon
alikon - comment - 22 Nov 2025

I have tested this item ✅ successfully on e0323cf


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

avatar alikon alikon - change - 22 Nov 2025
Status Pending Ready to Commit
avatar alikon
alikon - comment - 22 Nov 2025

RTC


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

avatar richard67 richard67 - change - 26 Nov 2025
Labels Added: RTC bug Webservices
avatar richard67 richard67 - change - 26 Nov 2025
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2025-11-26 16:09:22
Closed_By richard67
avatar richard67 richard67 - close - 26 Nov 2025
avatar richard67 richard67 - merge - 26 Nov 2025
avatar richard67
richard67 - comment - 26 Nov 2025

Thanks @ThomasFinnern for this PR, and congratulations to your first one, and thanks @muhme and @alikon for testing.

Add a Comment

Login with GitHub to post a comment