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 |
|
||||||
@rdeutz How can i fix the unsuccessful tests ?
My changes shouldn't cause this. (added just some characters inside strings)