? PR-4.4-dev Pending

User tests: Successful: Unsuccessful:

avatar alikon
alikon
10 Sep 2023

Summary of Changes

API tests for following endpoints:

  • GET: /api/index.php/v1/templates/styles/site
  • GET: /api/index.php/v1/templates/styles/site/{id}
  • PATCH: /api/index.php/v1/templates/styles/site/{id}
avatar joomla-cms-bot joomla-cms-bot - change - 10 Sep 2023
Category JavaScript Unit Tests
avatar alikon alikon - open - 10 Sep 2023
avatar alikon alikon - change - 10 Sep 2023
Status New Pending
avatar alikon alikon - change - 10 Sep 2023
The description was changed
avatar alikon alikon - edited - 10 Sep 2023
avatar alikon alikon - change - 10 Sep 2023
Labels Added: ? PR-4.4-dev
avatar laoneo laoneo - close - 11 Sep 2023
avatar laoneo laoneo - merge - 11 Sep 2023
avatar laoneo laoneo - change - 11 Sep 2023
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2023-09-11 13:50:08
Closed_By laoneo
avatar HLeithner
HLeithner - comment - 12 Sep 2023

That silent error seems wrong to me, we shouldn't ignore modification requests without noticed, actually the exception is right from my point of view. the patch request shouldn't include a the template in the first place

avatar alikon
alikon - comment - 12 Sep 2023

the problem is that even if you don't include template in the payload of the PATCH request
as per https://github.com/joomla/joomla-cms/blob/4.4-dev/libraries/src/MVC/Controller/ApiController.php#L397-L406
it's included as well, there are some keys like template and or password that for PATCH needs some extra management
done in the preprocessSaveData

Add a Comment

Login with GitHub to post a comment