Details
-
Bug
-
Status: Closed
-
Resolution: Fixed
-
6.2.X EE, 7.0.X, Master
-
7.0.x, 6.2.x
-
Committed
-
5
Description
Description:
The issue belongs to one improvement issue from user experience. When constructs an initial LDAP context, if it fails, the user hope can see the detailed cause reasons so that the user can check the issue better.
Reproduction Steps:
1. Set up one apache ldap.
2. Go to Control Panel-> Configuration >Instances Settings>Authentication->LDAP, add one LDAP server.
3. Choose the Apache Directory Server.
4. Enter wrong connection info (wrong port number: 10) and then click "Test LDAP Connection".
Actual Behavior:
Only the infos "Liferay has failed to connect to the LDAP server. Please check your configuration and verify that the LDAP server is running." display in UI.
Expected Behavior:
Besides UI infos display, the root exception should be printed in the log so that user can analyze the failure by using the detailed exception stack. For example, when input the port number "103898", the below infos should be printed in the log.
javax.naming.CommunicationException: localhost:103898 [Root exception is java.lang.IllegalArgumentException: port out of range:103898]
Attachments
Issue Links
- relates
-
LPE-16429 When constructs InitialLdapContext() fails the detailed exception should be printed in the log by default
-
- Closed
-