? ? ? Pending

User tests: Successful: Unsuccessful:

avatar laoneo
laoneo
14 Dec 2021

Summary of Changes

When the live_site attribute is set in the Joomla configuration.php file, then all API requests do fail with a 404 "Resource not found" error.

Testing Instructions

Lets assume the website runs on http://joomla.box/cms4 (in your case use your own url).

Actual result BEFORE applying this Pull Request

404 error

Expected result AFTER applying this Pull Request

List of articles with a 200 return code

avatar laoneo laoneo - open - 14 Dec 2021
avatar laoneo laoneo - change - 14 Dec 2021
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 14 Dec 2021
Category Libraries
avatar laoneo laoneo - change - 14 Dec 2021
The description was changed
avatar laoneo laoneo - edited - 14 Dec 2021
avatar laoneo laoneo - change - 14 Dec 2021
The description was changed
avatar laoneo laoneo - edited - 14 Dec 2021
743cbe6 15 Dec 2021 avatar laoneo cs
avatar laoneo laoneo - change - 15 Dec 2021
Labels Added: ?
avatar laoneo laoneo - change - 15 Dec 2021
The description was changed
avatar laoneo laoneo - edited - 15 Dec 2021
avatar alikon alikon - test_item - 15 Dec 2021 - Tested successfully
avatar alikon
alikon - comment - 15 Dec 2021

I have tested this item successfully on 743cbe6


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

avatar khu5h1 khu5h1 - test_item - 15 Dec 2021 - Tested successfully
avatar khu5h1
khu5h1 - comment - 15 Dec 2021

I have tested this item successfully on 743cbe6


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

avatar Shubhamverma2796 Shubhamverma2796 - test_item - 15 Dec 2021 - Tested successfully
avatar Shubhamverma2796
Shubhamverma2796 - comment - 15 Dec 2021

I have tested this item successfully on 743cbe6


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

avatar richard67 richard67 - change - 15 Dec 2021
Status Pending Ready to Commit
avatar richard67
richard67 - comment - 15 Dec 2021

RTC


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

avatar wilsonge
wilsonge - comment - 30 Dec 2021

Isn't it a better/more consistent fix to add the same thing we have for the administrator app https://github.com/joomla/joomla-cms/blob/4.0-dev/libraries/src/Uri/Uri.php#L151-L157 for the api app?

avatar laoneo
laoneo - comment - 2 Jan 2022

I never liked the dependency of Uri to to an app. But if you want me to add there another if block, then I can do it. All I want is to make the api actually work with the live site parameter.

avatar wilsonge
wilsonge - comment - 3 Jan 2022

I'm not against moving things around (but if I was doing that I'd probably be using the application to seed the base url/path into Uri rather than having them duplicating them determining URLs). But I think that would be for a minor version. For a patch version consistency is probably the best course of action.

avatar laoneo laoneo - change - 3 Jan 2022
Labels Added: ? ?
bef9e0c 3 Jan 2022 avatar laoneo cs
avatar laoneo
laoneo - comment - 3 Jan 2022

@wilsonge made it with Uri.

avatar wilsonge
wilsonge - comment - 4 Jan 2022

Fine by me. Can you update your base branch please so that the API tests run through just as a sanity check.

avatar laoneo
laoneo - comment - 4 Jan 2022

The failing tests have nothing to do with the pr as they are date related.

avatar wilsonge
wilsonge - comment - 4 Jan 2022

Yeah before the API tests weren't starting because it was behind (and Harald's been doing drone system test work). Obviously fine now!

avatar wilsonge wilsonge - change - 4 Jan 2022
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2022-01-04 11:45:45
Closed_By wilsonge
avatar wilsonge wilsonge - close - 4 Jan 2022
avatar wilsonge wilsonge - merge - 4 Jan 2022
avatar wilsonge
wilsonge - comment - 4 Jan 2022

Thanks!

Add a Comment

Login with GitHub to post a comment