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

render_hinclude not working with nginx

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Medium
    • 5.3.3, 2014.11, 5.4.0-beta1
    • 2014.07, 5.3.3, 5.4-dev
    • Documentation
    • None
    • Nginx

    Description

      Installing ezpublish-community in nginx and following exactly the instructions given in https://github.com/ezsystems/ezpublish-community/blob/master/doc/nginx/nginx.rst makes render_hinclude calls throw a error 500.

      If fact, a AccessDeniedHttpException is thrown from the symfony FragmentListener.

      Doing some debug i found that there seems to be a problem with the way the urls was given to the urlSigner in order to know if request are valid of not.

      Basically, while in apache uris from the hinclude call are in this way

      http://[host]/_fragment?_path=...
      

      with nginx urls seems to add another _fragment. like this

      http://[host]/_fragment?/_fragment&_path=...
      

      Because of that, signer seems to doesn't trust the url and throws the Exception.

      Attachments

        Activity

          People

            Unassigned Unassigned
            desorden Carlos Revillo
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: