Composer Dependency Changed PR-4.4-dev Pending

User tests: Successful: Unsuccessful:

avatar svanschu
svanschu
23 Feb 2024

Pull Request for Issue #42859 .

Summary of Changes

Adding a check if SCRIPT_NAME starts with a / or if HTTP_HOST ends with a /
If both checks are false add a / to prevent invalid URLs

Testing Instructions

This line fails
php cli/joomla.php scheduler:run -i 1 --live-site 'http://localhost:43000'

number 1 is the rotate Logs task, but it happens with any other as well

for testing this framework PR is needed as well joomla-framework/application#123

Actual result BEFORE applying this Pull Request

grafik

Expected result AFTER applying this Pull Request

Successful run

Link to documentations

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

avatar svanschu svanschu - open - 23 Feb 2024
avatar svanschu svanschu - change - 23 Feb 2024
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 23 Feb 2024
Category Libraries
avatar svanschu svanschu - change - 23 Feb 2024
Labels Added: PR-4.4-dev
avatar joomla-cms-bot joomla-cms-bot - change - 23 Feb 2024
Category Libraries External Library Composer Change Libraries
avatar richard67 richard67 - change - 28 Feb 2024
Labels Added: Composer Dependency Changed
avatar HLeithner
HLeithner - comment - 24 Apr 2024

composer update is unrelated. Beside that a url starts always with a slash so a live site looks always like https://example.com/ the last / is the identifier of the location. But I don't care if others thinks it's ok then it can be merged (wouldn't do it in 4.x branch at least)

avatar HLeithner HLeithner - change - 24 Apr 2024
Title
fix cli scheduler:run breaks if --live-site does not end with /
[4.4] fix cli scheduler:run breaks if --live-site does not end with /
avatar HLeithner HLeithner - edited - 24 Apr 2024
avatar HLeithner
HLeithner - comment - 15 Nov 2024

This pull request has been automatically rebased to 5.3-dev.

Add a Comment

Login with GitHub to post a comment