Details

      Description

      When rendered, ezimage links are generated with an absolute URL and this might be problematic in various configurations (e.g;: if a Reverse Proxy is used in front of the website to change host, port, scheme,...).

      This issue has been discussed here: http://share.ez.no/forums/ez-publish-5-platform/how-to-instruct-ez-publish-5-to-work-with-relative-url-on-ezimage-rendered-images

        Activity

        Show
        Patrick Allaert added a comment - PR: https://github.com/ezsystems/ezpublish-kernel/pull/1137
        Hide
        Peter Keung added a comment -

        Just ran into this problem in the same setup as described. One alternative is to use a ProxyResolver (ref: http://symfony.com/doc/current/bundles/LiipImagineBundle/cache-resolver/proxy.html) although to keep consistent with other generated eZ Publish URLs I would much prefer a solution like Patrick's PR.

        Show
        Peter Keung added a comment - Just ran into this problem in the same setup as described. One alternative is to use a ProxyResolver (ref: http://symfony.com/doc/current/bundles/LiipImagineBundle/cache-resolver/proxy.html ) although to keep consistent with other generated eZ Publish URLs I would much prefer a solution like Patrick's PR.
        Hide
        Paulo Bras (Inactive) added a comment -

        Actually, the full url can be useful, and it mimics the behavior of the legacy ezroot() operator. also chopping of the full url from the liip generated file would be a BC, so expect problems ahead

        both behaviours appear useful, so what about make it switchable?

        Show
        Paulo Bras (Inactive) added a comment - Actually, the full url can be useful, and it mimics the behavior of the legacy ezroot() operator. also chopping of the full url from the liip generated file would be a BC, so expect problems ahead both behaviours appear useful, so what about make it switchable?
        Hide
        Jérémy Poulain added a comment -

        Is there any news about this issue ?

        Show
        Jérémy Poulain added a comment - Is there any news about this issue ?
        Hide
        Bertrand Dunogier added a comment -

        I'm working on a spec for this.

        Short: we should not return absolute URIs from the IOResolver. Image uris should be non absolute by default, and optionally absolute (with host & scheme) if requested when rendering the image field.

        Show
        Bertrand Dunogier added a comment - I'm working on a spec for this. Short: we should not return absolute URIs from the IOResolver. Image uris should be non absolute by default, and optionally absolute (with host & scheme) if requested when rendering the image field.
        Hide
        Bertrand Dunogier added a comment -

        Posted to the PR by Patrick a comment about this fix, with a solution closer to imagine bundle.

        Show
        Bertrand Dunogier added a comment - Posted to the PR by Patrick a comment about this fix, with a solution closer to imagine bundle.

          People

          • Assignee:
            Unassigned
            Reporter:
            Patrick Allaert
          • Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

            • Created:
              Updated: