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

In dev mode, a 404 generated by the assetic controller removes the is_logged_in cookie

    Details

      Description

      In dev mode, a 404 generated by the assetic controller removes the is_logged_in cookie as a result, in subsequent page loads you are still logged in but you get the top menu as if you are anonymous and if you try to log in you have a form token exception.

      Steps to reproduce:
      1. In Chrome, open the devtools (make sure the "Enable JS source maps" option is enabled)
      2. Go to the homepage
      3. Log in

      after being redirected you can see in the network tab that a 404 appears for /js/jquery-1.10.2.min.map and in the header, you can see:

      Set-Cookie:is_logged_in=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; path=/
      

      By the way, all headers seem to appear twice...

        Activity

        Hide
        Patrick Allaert added a comment -

        I can confirm this issue as well.

        @Damien
        Do you have an idea why it only happens in dev mode? And a clue on how to fix that issue?

        Show
        Patrick Allaert added a comment - I can confirm this issue as well. @Damien Do you have an idea why it only happens in dev mode? And a clue on how to fix that issue?
        Hide
        Damien Pobel (Inactive) added a comment -

        Hi Patrick,

        I did not take the time to dig into it...
        As a workaround, if you just want to avoid this issue with the source map, you can also remove the source map annotation comment in the jquery source (or use a more recent jQuery file that does not embed it)

        Cheers

        Show
        Damien Pobel (Inactive) added a comment - Hi Patrick, I did not take the time to dig into it... As a workaround, if you just want to avoid this issue with the source map, you can also remove the source map annotation comment in the jquery source (or use a more recent jQuery file that does not embed it) Cheers

          People

          • Assignee:
            Unassigned
            Reporter:
            Damien Pobel (Inactive)
          • Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated: