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

EzPublishCoreBundle DefaultRouter tests incorrectly for ABSOLUTE_URL

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: dev-master
    • Fix Version/s: 2015.12.1
    • Component/s: Platform stack
    • Labels:
      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

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              wizhippo Douglas Hammond
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: