Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-25279

EzPublishCoreBundle DefaultRouter tests incorrectly for ABSOLUTE_URL

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: High High
    • 2015.12.1
    • dev-master
    • Platform stack
    • None

    Description

      eZ Platform has a incompatibility with Symfony 2.8, as it changes the value of some of it's constants.

      Specifically:

      • The DefaultRouter tests with $referenceType == self::ABSOLUTE_URL. This should be $referenceType === self::ABSOLUTE_URL as the Symfony CMF ChainRouter will pass false to mean 'not absolute'.
      • This is then interpreted incorrectly because of the type coercion as self::ABSOLUTE_URL = 0 and you get a false result.
      • You can see\symfony-cmf\routing\ChainRouter.php line 231:
        return $router->generate($name, $parameters, $absolute);

      Attachments

        Activity

          People

            Unassigned Unassigned
            feb52ca2-9206-4fa9-818f-2c4dcf3f42b0@accounts.ibexa.co Douglas Hammond
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: