? ? ? ? Pending

User tests: Successful: Unsuccessful:

avatar laoneo
laoneo
25 Nov 2021

Bugfix Pull Request for pr #35788.

Summary of Changes

POST and PATCH are not working for the media web service when an adapter is set.

Testing Instructions

curl --location --request PATCH 'https://[your J4 website]/api/index.php/v1/files/local-images:/joomla_black.png' \
--header 'Content-Type: application/json' \
--header 'X-Joomla-Token: [your user token]' \
--data-raw '{
    "path": "local-images:/joomla_black.png",
    "content": "[your base64 content]"
}'

Actual result BEFORE applying this Pull Request

Returns 404 not found and image is not created.

Expected result AFTER applying this Pull Request

Returns 200 and image contains the new created.

avatar laoneo laoneo - open - 25 Nov 2021
avatar laoneo laoneo - change - 25 Nov 2021
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 25 Nov 2021
Category Unit Tests
avatar laoneo laoneo - change - 25 Nov 2021
The description was changed
avatar laoneo laoneo - edited - 25 Nov 2021
avatar laoneo laoneo - change - 1 Dec 2021
The description was changed
avatar laoneo laoneo - edited - 1 Dec 2021
avatar alikon
alikon - comment - 2 Dec 2021

now it works with and without adapters
image

avatar alikon
alikon - comment - 2 Dec 2021

I have tested this item successfully on 1e73289


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/36116.

avatar alikon alikon - test_item - 2 Dec 2021 - Tested successfully
avatar laoneo laoneo - change - 25 Dec 2021
Labels Added: ? ?
avatar laoneo laoneo - change - 3 Jan 2022
Labels Added: ?
avatar dgrammatiko
dgrammatiko - comment - 6 Jan 2022

I have tested this item successfully on 2630c17


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/36116.

avatar dgrammatiko dgrammatiko - test_item - 6 Jan 2022 - Tested successfully
avatar alikon alikon - alter_testresult - 6 Jan 2022 - alikon: Tested successfully
avatar alikon alikon - change - 6 Jan 2022
Status Pending Ready to Commit
avatar alikon
alikon - comment - 6 Jan 2022

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/36116.

avatar bembelimen bembelimen - change - 6 Jan 2022
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2022-01-06 11:59:21
Closed_By bembelimen
Labels Added: ?
avatar bembelimen bembelimen - close - 6 Jan 2022
avatar bembelimen bembelimen - merge - 6 Jan 2022
avatar bembelimen
bembelimen - comment - 6 Jan 2022

Thanks

Add a Comment

Login with GitHub to post a comment