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

MainServlet is unable to handle non-userId remote user values

    Details

      Description

      Steps to reproduce

      1. Enable JAAS and set the authentication type to screen name
        portal.jaas.enable=true
        portal.jaas.auth.type=screenName
        
      2. Start Liferay with JPDA (./catalina.sh jpda run, and attach a debugger
      3. Add a logging breakpoint to MainServlet._loginUser which sets "remoteUser" to the screen name of a real user ("test") to simulate a successful login through JAAS that provides the correct login
      4. Visit the portal

      Expected behavior is that you are able to visit the portal as the user specified in step 3 (test) and there is no stack trace in the logs.

      Actual behavior is that you get a stack trace.

        Attachments

          Activity

            People

            Assignee:
            della.wang Della Wang (Inactive)
            Reporter:
            minhchau.dang Minhchau Dang
            Participants of an Issue:
            Recent user:
            Yunlin "Steven" Sun
            Engineering Assignee:
            Minhchau Dang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              23 weeks, 1 day ago

                Packages

                Version Package
                7.2.10 DXP FP11
                7.2.10.3 DXP SP4
                7.2.X
                7.3.X
                7.3.10 DXP FP1
                7.3.10.1 DXP SP1
                7.3.6 CE GA7
                Master