directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerald Turner (JIRA)" <j...@apache.org>
Subject [jira] [Created] (DIRAPI-265) Deserialized Dn loses bytes field resulting in null dn, treated as Root DSE when encoded in ModifyRequests
Date Wed, 03 Feb 2016 19:06:39 GMT
Gerald Turner created DIRAPI-265:
------------------------------------

             Summary: Deserialized Dn loses bytes field resulting in null dn, treated as Root
DSE when encoded in ModifyRequests
                 Key: DIRAPI-265
                 URL: https://issues.apache.org/jira/browse/DIRAPI-265
             Project: Directory Client API
          Issue Type: Bug
            Reporter: Gerald Turner


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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message