Details
-
Bug
-
Resolution: Cannot Reproduce
-
High
-
None
-
5.0, 5.1
-
None
Description
When you create an URL Alias (global or local), it is listed when requesting it for a Location or through the global list, but loading the alias will fail. Error message from REST:
<?xml version="1.0" encoding="UTF-8"?> <ErrorMessage media-type="application/vnd.ez.api.ErrorMessage+xml"> <errorCode>500</errorCode> <errorMessage>Internal Server Error</errorMessage> <errorDescription>Warning: Invalid argument supplied for foreach() in /home/bertrand/www/ezpublish-kernel/eZ/Publish/Core/Repository/URLAliasService.php line 297</errorDescription> <trace>#0 /home/bertrand/www/ezpublish-kernel/eZ/Publish/Core/Repository/URLAliasService.php(297): Symfony\Component\HttpKernel\Debug\ErrorHandler->handle(2, 'Invalid argumen...', '/home/bertrand/...', 297, Array) #1 /home/bertrand/www/ezpublish-kernel/eZ/Publish/Core/Repository/URLAliasService.php(645): eZ\Publish\Core\Repository\URLAliasService->extractPath(Object(eZ\Publish\SPI\Persistence\Content\UrlAlias), NULL) #2 /home/bertrand/www/ezpublish-kernel/eZ/Publish/Core/SignalSlot/URLAliasService.php(213): eZ\Publish\Core\Repository\URLAliasService->load('0-ccc868edfaf83...') #3 /home/bertrand/www/ezpublish-kernel/eZ/Publish/Core/REST/Server/Controller/URLAlias.php(60): eZ\Publish\Core\SignalSlot\URLAliasService->load('0-ccc868edfaf83...') #4 [internal function]: eZ\Publish\Core\REST\Server\Controller\URLAlias->loadURLAlias() #5 /home/bertrand/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php(129): call_user_func_array(Array, Array) #6 /home/bertrand/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php(73): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1) #7 /home/bertrand/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/DependencyInjection/ContainerAwareHttpKernel.php(57): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #8 /home/bertrand/www/ezpublish5/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php(197): Symfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #9 /home/bertrand/www/ezpublish5/web/index.php(59): Symfony\Component\HttpKernel\Kernel->handle(Object(Symfony\Component\HttpFoundation\Request)) #10 /home/bertrand/www/ezpublish5/web/index_dev.php(3): require('/home/bertrand/...') #11 {main}</trace> <file>/home/bertrand/www/ezpublish-kernel/eZ/Publish/Core/Repository/URLAliasService.php</file> <line>297</line> </ErrorMessage>
The errors will stop happening when the SPI cache has been cleared.
Attachments
Issue Links
- discovered while testing
-
EZP-21018 Replace RMF Url management with Symfony's
- Closed