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

AliasGenerator returns full URL instead of relative

    Details

      Description

      AliasGenerator::getVariation always returns in the .uri part full URLs (including protocol and host) instead of relative URLs. This is not only in contradiction to the specs in https://doc.ez.no/display/EZP/The+Image+FieldType .

      This is due to the fact that IORepositoryResolver::resolve inserts the base URL in https://github.com/ezsystems/ezpublish-kernel/blob/master/eZ/Bundle/EzPublishCoreBundle/Imagine/IORepositoryResolver.php#L96

      This issue also introduces heavy problems when the webserver is behind a https: proxy. The generated link includes http as protocol, however it should be https, which the webserver nerver sees.

        Activity

        Hide
        Peter Keung added a comment -

        Related ticket with a pull request and a workaround: https://jira.ez.no/browse/EZP-23896

        Show
        Peter Keung added a comment - Related ticket with a pull request and a workaround: https://jira.ez.no/browse/EZP-23896

          People

          • Assignee:
            Unassigned
            Reporter:
            Donat Fritschy
          • Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated: