-
Type:
Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: 6.2.X EE, 7.0.X EE, Master
-
Fix Version/s: 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
-
Component/s: Application Security > LDAP
-
Branch Version/s:7.0.x, 6.2.x
-
Backported to Branch:Committed
-
Story Points:1.5
-
Fix Priority:2
-
Git Pull Request:
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:
- Startup Liferay 6.2 SP9
- Create a site with the name "justin"
- Create an LDAP user with the screen name of "justin"
- Setup Liferay to connect to the LDAP server
- 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