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

MainServlet assumes that HttpServletRequest.getRemoteUser() returns valid liferay user id

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 5.2.2
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      I have a following setup

      Apache HTTPD 2.2 forwards requests using AJP proxy to Tomcat 5.5.27 running Liferay Portal 5.2.2

      Login is made using apache authentication modules and I changed tomcatAuthentication="false" from tomcat AJP configuration.

      The problem is that in Liferay's MainServlet assumes that HttpServletRequest.getRemoteUser() returns user id that can be found from liferay's user database. In my case HttpServletRequest.getRemoteUser() returns username. That causes MainServlet to throw following exception and custom auto login class never gets called.

      com.liferay.portal.NoSuchUserException: No User exists with the primary key 0

      I think MainServlet should not assume that HttpServletRequest.getRemoteUser() returns user id.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  8 years, 10 weeks, 3 days ago

                  Subcomponents