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

    • Bug
    • Status: Closed
    • Resolution: Duplicate
    • 5.2.2
    • 6.0.1 RC
    • None
    • None
    • 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

              zsolt.balogh Zsolt Balogh
              strmik Lukas Strmiska (Inactive)
              Kiyoshi Lee Kiyoshi Lee
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                12 years, 36 weeks, 3 days ago

                Packages

                  Version Package
                  6.0.1 RC