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

Add a Comment

Login with GitHub to post a comment