Details

      Description

      Description:
      Users experience the following exception when importing an LDAP user who's screen name is the same as a site's friendly URL:

      com.liferay.portal.GroupFriendlyURLException
          at com.liferay.portal.service.impl.UserLocalServiceImpl.validateScreenName(UserLocalServiceImpl.java:6238)
          at com.liferay.portal.service.impl.UserLocalServiceImpl.validate(UserLocalServiceImpl.java:5949)
          at com.liferay.portal.service.impl.UserLocalServiceImpl.addUserWithWorkflow(UserLocalServiceImpl.java:746)
          at com.liferay.portal.service.impl.UserLocalServiceImpl.addUser(UserLocalServiceImpl.java:608)
      

      This error is unclear and has brought on some confusion. Improved logging could help to inform users of what the exception means which would reduce confusion.

      Steps To Reproduce:

      1. Startup Liferay 6.2 SP9
      2. Create a site with the name "justin"
      3. Create an LDAP user with the screen name of "justin"
      4. Setup Liferay to connect to the LDAP server
      5. Attempt to import an LDAP user

      Expected Results:
      The user fails to import and the exception explains that the site URL or screen name requires modification.

      Actual Results:
      The user fails to import and the above exception is thrown which confuses clients.

      Branch:
      Reproducible In Branch

      commit 7889e97e0f00bc6fee51feb9b26e6c14048f5aa5
      Author: Eudaldo Alonso <eudaldo.alonso@liferay.com>
      Date:   Fri Feb 10 12:57:39 2017 +0100
      

      Master:
      Reproducible In Master

      commit ae55d96bfe62de85c0048b047c2cb81392ddedd2
      Author: Kenji Heigel <kenji.heigel@liferay.com>
      Date:   Tue Mar 14 13:56:41 2017 -0700
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  2 years, 24 weeks, 6 days ago

                  Packages

                  Version Package
                  6.2.X EE
                  7.0.0 DXP FP14
                  7.0.0 DXP SP3
                  7.0.3 CE GA4
                  7.0.X EE
                  7.1.X
                  Master