Uploaded image for project: 'Directory Client API'
  1. Directory Client API
  2. DIRAPI-151

Result codes from extended operations are lost

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.0-M19
    • 1.0.0-M20
    • None

    Description

      Invoking LdapConnection#extended(String, byte[]) always returns success.

      Performing a PasswordModifyOperation with an incorrect old password should result in an error code 53, unwilling to perform.
      However, the API returns error code 0, success, for the following code:

          ExtendedResponse response = conn.extended(
            "1.3.6.1.4.1.4203.1.11.1",
            new byte[] {...});
          response.getLdapResult(); // always returns success
      

      The bug may be around line 3106 of LdapNetworkConnection, where the actual response is discarded in favor of a response built from the request object.

      Attachments

        Activity

          People

            elecharny Emmanuel L├ęcharny
            dfisher Daniel Fisher
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: