User tests: Successful: Unsuccessful:
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.
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_]+
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.
The get routes returns a 404
The return of is a json text result. After changing the configuration value com_comp2test, it is also returned.
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
| Status | New | ⇒ | Pending |
| Category | ⇒ | Front End Plugins |
| Title |
|
||||||
| Title |
|
||||||
| Labels |
Added:
PR-5.4-dev
|
||
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
I have tested this item ✅ successfully on e0323cf
| Status | Pending | ⇒ | Ready to Commit |
RTC
| Labels |
Added:
RTC
bug
Webservices
|
||
| 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 |
Thanks @ThomasFinnern for this PR, and congratulations to your first one, and thanks @muhme and @alikon for testing.
@rdeutz How can i fix the unsuccessful tests ?
My changes shouldn't cause this. (added just some characters inside strings)