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

RequestLocaleListener tries to match SiteAccess on /_fos_user_context_hash

    XMLWordPrintable

    Details

      Description

      Steps to reproduce
      Try to run CURL request for X-User-Hash as stated in the documentation:
      https://doc.ezplatform.com/en/2.3/guide/http_cache/#new-anonymous-x-user-hash

      curl -I -H "Accept: application/vnd.fos.user-context-hash" http://<your-domain.com>/_fos_user_context_hash
      

      Result
      You will receive a response like:

      HTTP/1.1 400 Bad Request
      Date: Mon, 08 Oct 2018 11:32:31 GMT
      Server: Apache/2.4.33 (Unix) PHP/7.1.20
      X-Powered-By: PHP/7.1.20
      Cache-Control: no-cache, private
      xkey: ez-all
      Vary: cookie,authorization
      Connection: close
      Content-Type: text/html; charset=UTF-8
      

      Expected result:
      You should receive a response like:

      HTTP/1.1 200 OK
      Date: Mon, 08 Oct 2018 11:31:53 GMT
      Server: Apache/2.4.33 (Unix) PHP/7.1.20
      X-Powered-By: PHP/7.1.20
      X-User-Hash: 4bee787753ed6173e382f569d3a33716e14d1a16e7dbaf810d80e06373aa0746
      Cache-Control: max-age=600, public
      Vary: cookie,authorization
      xkey: ez-user-context-hash ez-all
      Content-Type: application/vnd.fos.user-context-hash
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            kamil.madejski@ez.no Kamil Madejski
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: