Uploaded image for project: 'OpenDJ'
  1. OpenDJ
  2. OPENDJ-7576

Rest2ldap: error messages are too cryptic

    XMLWordPrintable

    Details

    • Bug
    • Status: Dev in Progress
    • Major
    • Resolution: Unresolved
    • 7.1.0
    • None
    • regression, rest
    • None

      Description

      Since commit 5157bbbcb656e92f0b437aebbeb46569cf3a4c96

      We have security tests around rest2ldap that uses expired/wrong host/untrusted/revoked certificates and check the error message.
      Before we were getting explicit error messages like:

      {"code":503,"reason":"Service Unavailable","message":"Connect Error: The LDAP connection has failed because an error occurred during the SSL handshake: java.security.cert.CertificateExpiredException: NotAfter: Thu Jan 18 10:20:30 UTC 2018"}
      
      "code":503,"reason":"Service Unavailable","message":"Connect Error: The LDAP connection has failed because an error occurred during the SSL handshake: java.security.cert.CertificateException: No name matching openam.example.com found"}
      
      etc
      

      Now the response only shows:

      {"code":503,"reason":"Service Unavailable","message":"Connect Error: No operational connection factories available"}
      

      To reproduce:

      ./run-pybot.py -c security -s *.Opendj4536.Rest2Ldap opendj
      

        Attachments

          Issue Links

            Activity

              People

              ylecaillez Yannick Lecaillez
              cforel carole forel
              Yannick Lecaillez Yannick Lecaillez
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated: