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

role & group session cache is not correctly cleaned on login in 4.1

    XMLWordPrintable

Details

    Description

      This is the patch for the issue only:

      Index: kernel/classes/datatypes/ezuser/ezuser.php
      ===================================================================
      --- kernel/classes/datatypes/ezuser/ezuser.php	(revision 23242)
      +++ kernel/classes/datatypes/ezuser/ezuser.php	(working copy)
      @@ -985,10 +985,10 @@
               // Set/overwrite the global user, this will be accessed from
               // instance() when there is no ID passed to the function.
               $GLOBALS["eZUserGlobalInstance_"] = $user;
      -        $http->setSessionVariable( 'eZUserLoggedInID', $userID );
               eZSession::setUserID( $userID );
      +        $http->setSessionVariable( 'eZUserLoggedInID', $userID );
      +        self::cleanup();
               eZSession::regenerate();
      -        $user->cleanup();
           }
       
           /*!
      

      The full patch also fixes:

      • issue where ::instance() will not cache the current users object (so re fetched on each call)
      • minor code optimizations

      How to patch 4.1.0 (the easy way):

      • download the attached ezuser.php file and place it in "kernel\classes\datatypes\ezuser\" (overwriting the existing one)
      • logout and in again
      • clear sessions in admin if you want to force others to login as well (/setup/session)

      Attachments

        Activity

          People

            andre1 andre1
            andre1 andre1
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: