Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-130984

When a user is locked out of Portal, the Timezone Displayed should prioritize the Portal Settings Locale instead of the App Server specificed Locale

Details

    • 3

    Description

      Description
      When displaying the lockout message for a user locked out of Portal, it is normally expected to take into account the Portal set Locale for timezone over the one set in the App server (for tomcat, the setenv.bat/setenv.sh property)

      Steps to Reproduce

      1. Compile Portal with Tomcat
      2. In setenv.sh or setenv.bat (depending on your OS), adjust the property -Duser.timezone=GMT to be -Duser.timezone=UTC
      3. Start Portal
      4. In Instance Settings > Localization > Time Zone, change time zone to (UTC + 2) CEST.
        Go to Password Policies, edit Default Password Policy:
        Enable Lockout.
        Maximum Failure: 3
        Lockout Duration: 5 Minutes
      5. Add a new user, assign the user to Default Password Policy.
      6. Logout and try to login as the new user with wrong passwords until being locked out.
      7. Assert the Lockout message displays the lockout time in the new timezone (CEST)

      Expected Result
      Lockout message displays the user will have access to portal at a time in CEST

      Actual Result
      Lockout message displays that the user will have access to the portal at a time in UTC

      Reproduced in
      Tomcat 9.0.43 + Chromium + MySQL 5.7

      Attachments

        Activity

          People

            support-lep@liferay.com SE Support
            kyle.miho Kyle Miho
            Kiyoshi Lee Kiyoshi Lee
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              50 weeks, 4 days ago

              Packages

                Version Package
                7.1.X
                7.2.X
                7.3.X
                Master