Skip to content

Conversation

@ThomasFinnern
Copy link

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

@richard67 richard67 changed the 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 Nov 18, 2025
@ThomasFinnern
Copy link
Author

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

@ThomasFinnern ThomasFinnern changed the 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 Nov 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants