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

AliasGenerator returns full URL instead of relative

    XMLWordPrintable

    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.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated: