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

ResultCodeEnum 'NO_SUCH_OBJECT' should have message 'noSuchObject'

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0.0-M33
    • Fix Version/s: 1.0.0-RC1
    • Labels:
      None

      Description

      According to RFC2251 the result code for error 32 is 'noSuchObject'.

      org.apache.directory.api.ldap.model.message.ResultCodeEnum currently defines:
      NO_SUCH_OBJECT(32, "NO_SUCH_OBJECT")
      instead of:
      NO_SUCH_OBJECT(32, "noSuchObject")

      I'm using DSMLv2 and JaxB and the issue I face is when receiving this error the result code cannot be unmarshalled into the corresponding Java enum type LDAPResultCode.

        Activity

        Hide
        clauds2x Claudia S added a comment -

        Thanks for the prompt fix. I quickly tested with the latest trunk and it now works like a charm.

        Show
        clauds2x Claudia S added a comment - Thanks for the prompt fix. I quickly tested with the latest trunk and it now works like a charm.
        Show
        elecharny Emmanuel Lecharny added a comment - Fixed in http://svn.apache.org/viewvc?rev=1730725&view=rev
        Hide
        elecharny Emmanuel Lecharny added a comment -

        Good catch !

        I have no idea why we used NO_SUCH_OBJECT for this error only... This has been introduced back in 2010. A typo most certainly.

        Show
        elecharny Emmanuel Lecharny added a comment - Good catch ! I have no idea why we used NO_SUCH_OBJECT for this error only... This has been introduced back in 2010. A typo most certainly.

          People

          • Assignee:
            Unassigned
            Reporter:
            clauds2x Claudia S
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development