Details

      Description

      When creating a url alias in the eZ Backend, for example /Search for the module /content/search, calling the Url /Search causes a Symfony exception

       
      FatalErrorException: Error: Call to undefined method Symfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel::render() in /Users/rbremaud/Sites/mySite/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishCoreBundle/EventListener/RequestEventListener.php line 108
      

       
      in /Users/rbremaud/Sites/MySite/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishCoreBundle/EventListener/RequestEventListener.php line 108
      at ErrorHandler??handleFatal() in /Users/rbremaud/Sites/MySite/vendor/symfony/symfony/src/Symfony/Component/Debug/ErrorHandler.php line 0
      at RequestEventListener??onKernelRequestForward() in /Users/rbremaud/Sites/MySite/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Debug/TraceableEventDispatcher.php line 450
      at ??call_user_func() in /Users/rbremaud/Sites/MySite/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Debug/TraceableEventDispatcher.php line 450
      at ??Symfony\Component\HttpKernel\Debug\{closure}() in /Users/rbremaud/Sites/MySite/ezpublish/cache/dev/classes.php line 1764
      at ??call_user_func() in /Users/rbremaud/Sites/MySite/ezpublish/cache/dev/classes.php line 1764
      at EventDispatcher??doDispatch() in /Users/rbremaud/Sites/MySite/ezpublish/cache/dev/classes.php line 1697
      at EventDispatcher??dispatch() in /Users/rbremaud/Sites/MySite/ezpublish/cache/dev/classes.php line 1861
      at ContainerAwareEventDispatcher??dispatch() in /Users/rbremaud/Sites/MySite/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Debug/TraceableEventDispatcher.php line 139
      at TraceableEventDispatcher??dispatch() in /Users/rbremaud/Sites/MySite/ezpublish/bootstrap.php.cache line 2794
      at HttpKernel??handleRaw() in /Users/rbremaud/Sites/MySite/ezpublish/bootstrap.php.cache line 2779
      at HttpKernel??handle() in /Users/rbremaud/Sites/MySite/ezpublish/bootstrap.php.cache line 2908
      at ContainerAwareHttpKernel??handle() in /Users/rbremaud/Sites/MySite/ezpublish/bootstrap.php.cache line 2210
      at Kernel??handle() in /Users/rbremaud/Sites/MySite/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishCoreBundle/Kernel.php line 62
      at Kernel??handle() in /Users/rbremaud/Sites/MySite/web/index.php line 64
      in /Users/rbremaud/Sites/MySite/web/index_dev.php line 27
      at ??{main}() in /Users/rbremaud/Sites/MySite/web/index_dev.php line 0
      

        Issue Links

          Activity

          Show
          Jérôme Vieilledent (Inactive) added a comment - https://github.com/ezsystems/ezpublish-kernel/pull/542
          Show
          Jérôme Vieilledent (Inactive) added a comment - Fixed in master: https://github.com/ezsystems/ezpublish-kernel/commit/38e5de56a20c08a9a7a267739270109738326b01
          Hide
          Joao Pingo (Inactive) added a comment - - edited

          @Jérôme
          I've done the following test

          1. Using Master (git clone) installed ezpublish5 with ezdemo
          2. Created the following URL Wildcard: Search -> content/search
          3. Tested in <hostname>/ezdemo_site_admin/Search - I'm redirected to <hostname>ezdemo_site_admin/content/search - Correct
          4. Tested in <hostname>/Search - I'm redirected to <hostname>/content/search - Correct
          5. Created the following URL Translator: Test -> content/search
          6. Tested in <hostname>/ezdemo_site_admin/Test - I'm redirected to <hostname>ezdemo_site_admin/content/search - Correct
          7. Tested in <hostname>/Test - I get a fatal error

             Notice: Undefined variable: querystring in /var/www/html/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishCoreBundle/EventListener/RequestEventListener.php line 157
            500 Internal Server Error - ContextErrorException 
            

          Full stack trace: https://gist.github.com/jpingo/02e823f5dbf06eaecc0f
          After reverting your patch's i get the same behaviour, i was not able to get the mentioned error ...

          Show
          Joao Pingo (Inactive) added a comment - - edited @Jérôme I've done the following test Using Master (git clone) installed ezpublish5 with ezdemo Created the following URL Wildcard: Search -> content/search Tested in <hostname>/ezdemo_site_admin/Search - I'm redirected to <hostname>ezdemo_site_admin/content/search - Correct Tested in <hostname>/Search - I'm redirected to <hostname>/content/search - Correct Created the following URL Translator: Test -> content/search Tested in <hostname>/ezdemo_site_admin/Test - I'm redirected to <hostname>ezdemo_site_admin/content/search - Correct Tested in <hostname>/Test - I get a fatal error Notice: Undefined variable: querystring in /var/www/html/ezpublish5/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishCoreBundle/EventListener/RequestEventListener.php line 157 500 Internal Server Error - ContextErrorException Full stack trace: https://gist.github.com/jpingo/02e823f5dbf06eaecc0f After reverting your patch's i get the same behaviour, i was not able to get the mentioned error ...
          Hide
          Jérôme Vieilledent (Inactive) added a comment -

          Hi

          I guess you tested with a query string, and yes this is an issue. Thanks, will fix it right away.

          Show
          Jérôme Vieilledent (Inactive) added a comment - Hi I guess you tested with a query string, and yes this is an issue. Thanks, will fix it right away.
          Hide
          Jérôme Vieilledent (Inactive) added a comment -

          Mmm this error is not directly related to this issue. Can you please create a new one ? Thanks

          Show
          Jérôme Vieilledent (Inactive) added a comment - Mmm this error is not directly related to this issue. Can you please create a new one ? Thanks
          Hide
          Jérôme Vieilledent (Inactive) added a comment -

          Actually it's not necessary to create a new issue, it's a regression from EZP-21591.

          Show
          Jérôme Vieilledent (Inactive) added a comment - Actually it's not necessary to create a new issue, it's a regression from EZP-21591 .
          Show
          Jérôme Vieilledent (Inactive) added a comment - Regression fixed in master: https://github.com/ezsystems/ezpublish-kernel/commit/de47ba9efd8fde0c6006bdcc33416ea95c6bc794
          Hide
          Paulo Nunes (Inactive) added a comment -

          QA Approved

          Show
          Paulo Nunes (Inactive) added a comment - QA Approved

            People

            • Assignee:
              Unassigned
              Reporter:
              Romain Bremaud
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 5 hours
                5h