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

Creating a new user with no email address from LDAP results in NullPointerException

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Duplicate
    • Affects Version/s: 6.1.1 CE GA2
    • Fix Version/s: None
    • Labels:
    • Environment:

      Description

      We are using OpenSSO and LDAP to auto-login our users. We do not require email addresses, so we do have users with blank email entries in LDAP. Liferay seems to choke on these users when attempting to import their information and ends up throwing a NullPointerException in the UserLocalServiceImpl class, specifically the method addUserWithWorkflow. Near the top of the method, trim() and toLowerCase() is called on the email address String. Further down, there is a check to see if the email address is null and not required, if so generate one. Given that the method apparently anticipates the possibility of receiving a null email address, the operations on the email address need to move down below the code where one is generated.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jorge.diaz Jorge Diaz
              Reporter:
              dnoler Danny Noler (Inactive)
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                6 years, 18 weeks, 6 days ago

                  Packages

                  Version Package