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

Deserialized Dn loses bytes field resulting in null dn, treated as Root DSE when encoded in ModifyRequests

Attach filesAttach ScreenshotWatch issueCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.0.0-RC1
    • None
    • Patch

    Description

      The Dn class is Externalizable and has fields normName and bytes. The readExternal/writeExternal methods preserve the normName field, but ignore the bytes field. The Dn class has a static method, getBytes, which will return null if the Dn instance had been deserialized. The ModifyRequestDecorator uses the Dn getBytes method when encoding the entry name onto the PDU, resulting in a zero length sequence if the Dn had been deserialized, therefore treated like the Root DSE.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            gturner@unzane.com Gerald Turner
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment