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

Nullpointer with screenName user principal strategy when unauthenticated user

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Duplicate
    • Affects Version/s: 5.2.2
    • Fix Version/s: 6.0.1 RC
    • Component/s: None
    • Labels:
      None
    • Environment:
      tomcat-6.0.18

      Description

      When I choose screenName user principal strategy for portlet in liferay-portlet.xml

       
        <portlet>
          ....
          <user-principal-strategy>screenName</user-principal-strategy>
        </portlet>
      

      and then unauthenticated user (guest) displays this portlet, Nullpointer exception is thrown from PortletServletRequest.java on line 94.

       
      _remoteUser = user.getScreenName(); // Nullpointer, user is null.
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              zsolt.balogh Zsolt Balogh
              Reporter:
              strmik Lukas Strmiska (Inactive)
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

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

                  Packages

                  Version Package
                  6.0.1 RC