Return-Path: X-Original-To: apmail-directory-dev-archive@www.apache.org Delivered-To: apmail-directory-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2D55518CF7 for ; Wed, 3 Feb 2016 20:39:03 +0000 (UTC) Received: (qmail 53741 invoked by uid 500); 3 Feb 2016 20:38:40 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 53654 invoked by uid 500); 3 Feb 2016 20:38:40 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 53375 invoked by uid 99); 3 Feb 2016 20:38:40 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Feb 2016 20:38:40 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id EA3992C1F68 for ; Wed, 3 Feb 2016 20:38:39 +0000 (UTC) Date: Wed, 3 Feb 2016 20:38:39 +0000 (UTC) From: "Emmanuel Lecharny (JIRA)" To: dev@directory.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (DIRAPI-265) Deserialized Dn loses bytes field resulting in null dn, treated as Root DSE when encoded in ModifyRequests MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DIRAPI-265?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Emmanuel Lecharny updated DIRAPI-265: ------------------------------------- Fix Version/s: 1.0.0-M34 > 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 > Fix For: 1.0.0-M34 > > Attachments: Dn-Serialize-null-bytes-Fix.patch, Dn-Serialize-null-bytes-Test.patch > > > 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)