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

ezform token doesn't work with "Log in to the eZ Publish Administration Interface" in ezwebin/flow if user is already logged into admin

    Details

      Description

      If the user is logged into admin already and then tries to log into admin via login box in ezwebin/ezflow frontpage he'll get fatal error:

      An unexpected error has occurred. Please contact the webmaster.
      Missing token from Form in /data1/www/apache2php52/ezp/.run/extension/ezformtoken/event/ezxformtoken.php on line 62
      

      Steps to reproduce

      Log in the user into ezflow
          Enter form data:
          Username : admin
          Password : publish
          Press "Login" button
       
      Log the user into admin as well
          Click "Go to admin interface." button in toolbar
          Log in as admin
       
      Go back to ezflow frontpage
          Click "Selenium tests" in top menu
          Click "Switch SiteAccess" in left menu
          Click "ezflow_site" link
       
      Log user out from frontpage
          Click "Logout ( Administrator User )" link
       
      Try to log user in again, but this time into admin interface
          Click "Login"
          Enter form data:
          Username : admin
          Password : publish
          Enable the "Log in to the eZ Publish Administration Interface" checkbox
          Press "Login" button
          Validate that you are log in to the admin interface
      
      

        Issue Links

          Activity

          Hide
          André R added a comment -

          I assume this is if session pr siteaccess is enabled.
          If so then this is a documentation issue, since it uses session to keep track of user form token, hence can not work on this setup.

          Show
          André R added a comment - I assume this is if session pr siteaccess is enabled. If so then this is a documentation issue, since it uses session to keep track of user form token, hence can not work on this setup.
          Hide
          Vidar Langseid added a comment -

          > I assume this is if session pr siteaccess is enabled.
          Yes, this happens on a default ezflow installation. and session per siteaccess is the default setting

          > If so then this is a documentation issue, since it uses session to keep track of user form token, hence can not work on this setup.
          I disagree. You'll get fatal error on a standard setup. Maybe start a session once you access /user/login ?

          Show
          Vidar Langseid added a comment - > I assume this is if session pr siteaccess is enabled. Yes, this happens on a default ezflow installation. and session per siteaccess is the default setting > If so then this is a documentation issue, since it uses session to keep track of user form token, hence can not work on this setup. I disagree. You'll get fatal error on a standard setup. Maybe start a session once you access /user/login ?
          Hide
          Ole Marius Smestad added a comment -

          I think that rather than having the checkbox for logging in to the administration interface, a plain link should be used instead. The link simply sends you to the proper site access (so that sessions are ok), with a new login screen.

          Show
          Ole Marius Smestad added a comment - I think that rather than having the checkbox for logging in to the administration interface, a plain link should be used instead. The link simply sends you to the proper site access (so that sessions are ok), with a new login screen.
          Show
          André R added a comment - Fixed by changing to link in: https://github.com/ezsystems/ezwebin/commit/bc8d90e1598135fcd86685c99cafe02fc47df692

            People

            • Assignee:
              André R
              Reporter:
              Vidar Langseid
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: