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

When constructs InitialLdapContext() failed, the detailed cause exception should be printed in the log by default

Details

    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

          Activity

            People

              raven.song Raven Song
              hai.yu Hai Yu
              Kiyoshi Lee Kiyoshi Lee
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                4 years, 23 weeks, 3 days ago

                Packages

                  Version Package
                  6.2.X EE
                  7.0.0 DXP FP47
                  7.0.0 DXP SP8
                  7.0.X
                  7.1.0 Beta 1
                  7.1.X
                  Master