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

Result codes from extended operations are lost

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.0-M19
    • Fix Version/s: 1.0.0-M20
    • Labels:
      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.

        Activity

        Hide
        pamarcelot Pierre-Arnaud Marcelot added a comment -

        I was able to reproduce the issue.

        Working on it...

        Show
        pamarcelot Pierre-Arnaud Marcelot added a comment - I was able to reproduce the issue. Working on it...
        Hide
        elecharny Emmanuel Lecharny added a comment -
        Show
        elecharny Emmanuel Lecharny added a comment - Fixed with http://svn.apache.org/r1513517
        Hide
        elecharny Emmanuel Lecharny added a comment -

        Closing the resolved issues.

        Show
        elecharny Emmanuel Lecharny added a comment - Closing the resolved issues.

          People

          • Assignee:
            elecharny Emmanuel Lecharny
            Reporter:
            dfisher Daniel Fisher
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development