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

Cookies not sent in UDW Requests for Content Types

    Details

      Description

      Currently, when the Universal Discovery Widget makes Requests for any of the Content Types (to URL like /api/ezp/v2/content/types/<id>), these Requests don't have Cookie header. This means that, for example, the Request is always done as an Anonymous user (because there is no "eZSESSID" cookie sent), which can cause other issues in some installations.
      This issue happens only on eZ Platform v2.
      There might also be other instances when the Cookie is not sent.

      Steps to reproduce

      1. Create new eZ Platform v2 installation.
      2. In Admin UI, go to "Content"/"Content structure".
      3. Click "Create" button and select "Article" Content Type.
      4. Open the browser's developer tools.
      5. Click inside "Intro" Field and then on "+" on the left. Select "Image". Universal Discovery Widget should pop up.
      6. Click on "Media" inside the UDW.
      7. In the "Network" tab of your browser's developer tools, there should be Request to /api/ezp/v2/content/types/1. Click on it and check the Request Headers. Cookie header won't be there (and it should be, containing at least "eZSESSID" cookie).

        Activity

        Show
        Adam Wójs added a comment - PR: https://github.com/ezsystems/ezplatform-admin-ui/pull/357
        Show
        Michał Szołtysek added a comment - Merged to 1.0: https://github.com/ezsystems/ezplatform-admin-ui/commit/9473ff9ad7db7bd4222ea8718ca99370b4fe426c
        Hide
        Michał Szołtysek added a comment -

        QA Approved on eZ Platform v2.0.2 with patch.

        Show
        Michał Szołtysek added a comment - QA Approved on eZ Platform v2.0.2 with patch.

          People

          • Assignee:
            Unassigned
            Reporter:
            Jacek Foremski (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: