No Code Attached Yet
avatar ron4mac
ron4mac
3 Jun 2024

Steps to reproduce the issue

Cause extension check for updates on an extension whose manifest update site is an http url and the update server redirects to https

Expected result

No failure

Actual result

( from J 4.4.5 instance )

CRITICAL 2605:9480:14c:xxxx:xxxx:xxxx:xxxx:xxxx
error	Uncaught Throwable of type TypeError thrown with message "parse_url(): Argument #1 ($url) must be of type string, array given".
Stack trace:
#0 [ROOT]/libraries/vendor/joomla/uri/src/UriHelper.php(42): parse_url()
#1 [ROOT]/libraries/vendor/joomla/uri/src/AbstractUri.php(369): Joomla\Uri\UriHelper::parse_url()
#2 [ROOT]/libraries/src/Uri/Uri.php(290): Joomla\Uri\AbstractUri->parse()
#3 [ROOT]/libraries/vendor/joomla/uri/src/AbstractUri.php(111): Joomla\CMS\Uri\Uri->parse()
#4 [ROOT]/libraries/src/Http/Transport/SocketTransport.php(134): Joomla\Uri\AbstractUri->__construct()
#5 [ROOT]/libraries/vendor/joomla/http/src/Http.php(314): Joomla\CMS\Http\Transport\SocketTransport->request()
#6 [ROOT]/libraries/vendor/joomla/http/src/Http.php(152): Joomla\Http\Http->makeTransportRequest()
#7 [ROOT]/libraries/src/Updater/UpdateAdapter.php(251): Joomla\Http\Http->get()
#8 [ROOT]/libraries/src/Updater/Adapter/ExtensionAdapter.php(269): Joomla\CMS\Updater\UpdateAdapter->getUpdateSiteResponse()
#9 [ROOT]/libraries/src/Updater/Updater.php(264): Joomla\CMS\Updater\Adapter\ExtensionAdapter->findUpdate()
#10 [ROOT]/libraries/src/Updater/Updater.php(165): Joomla\CMS\Updater\Updater->getUpdateObjectsForSite()
#11 [ROOT]/administrator/components/com_installer/src/Model/UpdateModel.php(276): Joomla\CMS\Updater\Updater->findUpdates()
#12 [ROOT]/administrator/components/com_installer/src/Controller/UpdateController.php(113): Joomla\Component\Installer\Administrator\Model\UpdateModel->findUpdates()
#13 [ROOT]/libraries/src/MVC/Controller/BaseController.php(693): Joomla\Component\Installer\Administrator\Controller\UpdateController->find()
#14 [ROOT]/libraries/src/Dispatcher/ComponentDispatcher.php(143): Joomla\CMS\MVC\Controller\BaseController->execute()
#15 [ROOT]/libraries/src/Component/ComponentHelper.php(361): Joomla\CMS\Dispatcher\ComponentDispatcher->dispatch()
#16 [ROOT]/libraries/src/Application/AdministratorApplication.php(143): Joomla\CMS\Component\ComponentHelper::renderComponent()
#17 [ROOT]/libraries/src/Application/AdministratorApplication.php(186): Joomla\CMS\Application\AdministratorApplication->dispatch()
#18 [ROOT]/libraries/src/Application/CMSApplication.php(293): Joomla\CMS\Application\AdministratorApplication->doExecute()
#19 [ROOT]/administrator/includes/app.php(61): Joomla\CMS\Application\CMSApplication->execute()
#20 [ROOT]/administrator/index.php(32): require_once('...')
#21 {main}

System information (as much as possible)

Joomla 4.x or 5.x on Debian Linux distro running PHP 8.2.18
Update server: Debian Linux distro running PHP 8.2.18, Apache 2.4.59

Additional comments

The correct redirect location is parsed but propagated as an array of one.

avatar ron4mac ron4mac - open - 3 Jun 2024
avatar joomla-cms-bot joomla-cms-bot - change - 3 Jun 2024
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 3 Jun 2024
avatar ron4mac ron4mac - change - 3 Jun 2024
The description was changed
avatar ron4mac ron4mac - edited - 3 Jun 2024

Add a Comment

Login with GitHub to post a comment