Webservice endpoints return a broken response with enabled debug mode, as the debug bar is unable to fetch the current template name due to changes in #46551
6.1
Proper JSON markup returned
JSON and error returned
No response
No response
| Labels |
Added:
No Code Attached Yet
bug
|
||
with debug plugin disabled endpoints responds
Sorry, I missed this issue. Looking at the code again, I think there are two options:
I do not know which one is better, maybe override getTemplate makes more sense. @SniperSister @Fedik How do you think about it or have a better idea?
I do not know which one is better, maybe override getTemplate makes more sense
Makes sense for me, the ApiApplication will have a valid, custom template anyways
We can do that, ignore the validation for api.
Or maybe just check api application for site template.
The reason is that people still may render something for api that uses the template.
But not sure how to do that.
For now maybe just override isValid
The problem that
JPATH_THEMESis pointing to non existing/api/templates/joomla-cms/libraries/src/Application/CMSApplication.php
Lines 1436 to 1445 in be8b467
I not sure what is right solution would be.
There few more related issues to missing template under Api/Cli applications