No Code Attached Yet
avatar svanschu
svanschu
22 Feb 2024

Steps to reproduce the issue

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

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

Expected result

successful run

Actual result

grafik

If you start debugging and stop on every exception, it stops with

RuntimeException: Could not parse the requested URI http://localhost:43000cli/joomla.php

in libraries/vendor/joomla/uri/src/AbstractUri.php line 367 parse($uri)

System information (as much as possible)

Tested with J5.0

Additional comments

I only found the symptoms yet, but not the root cause

avatar svanschu svanschu - open - 22 Feb 2024
avatar joomla-cms-bot joomla-cms-bot - change - 22 Feb 2024
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 22 Feb 2024
avatar svanschu
svanschu - comment - 23 Feb 2024

Found the spot.

In libraries/vendor/joomla/application/src/AbstractWebApplication.php line 820 $uri .= $this->input->server->getString('SCRIPT_NAME'); the SCRIPT_NAME gets added without checking if there is a / in between or not.

avatar svanschu svanschu - change - 23 Feb 2024
Status New Closed
Closed_Date 0000-00-00 00:00:00 2024-02-23 19:03:12
Closed_By svanschu
avatar svanschu svanschu - close - 23 Feb 2024

Add a Comment

Login with GitHub to post a comment