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

User cannot login to Liferay more then once if JAAS is enabled

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 6.0.2 RC
    • Fix Version/s: 6.0.3 GA, 6.0.4 GA
    • Component/s: Application Security
    • Labels:
      None
    • Environment:
      liferay trunk
      revision 53859
      from 26.05.2010
    • Branch Version/s:
      5.2.x, 5.1.x
    • Backported to Branch:
      Committed

      Description

      Description:
      User logs in successfully to liferay. Then user logs out.
      From then no user can login to the liferay portal with this Browser instance.
      He gives valid user/password but remains on the login page, although successfully authenticated.

      Reason:
      in com.liferay.portlet.login.action.LoginAction I checked the url that is generated.
      [code]
      if (PropsValues.PORTAL_JAAS_ENABLE) {
      actionResponse.sendRedirect(
      themeDisplay.getPathMain() + "/portal/protected");
      }
      [/code]

      if the resulting url is: /c/portal/protected then the user is redirected successfully.

      if the resulting url begins with a language identifier like:
      /en/c/portal/protected or /de/c/portal/protected
      Then the user remains on the login screen.
      The language probably comes from the browser cache.
      After clearing browser cache (IE and Firefox) and connecting to localhost:8080 the user can login again.
      Another way is, if the user remains on the login screen, although authenticated, to set the url in the browser manually to
      http://localhost:8080/c/portal/protected (without the language).

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              wesley.gong Wesley Gong
              Reporter:
              hub Hubert Felber (Inactive)
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                11 years, 13 weeks, 3 days ago

                  Packages

                  Version Package
                  6.0.3 GA
                  6.0.4 GA