mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

floblanc
22.36.2009 5550dc5d6d7cb8229e66c488ba4c6c2c7c8a3762
Fix for CompareOperationBasis.getEntryDN()

When the rawEntryDN of a CompareOperationBasis is modified, the field entryDN is
reset and not initialized. If the getEntryDN() routine is called and entryDN is
null, it should try to decode the rawEntryDN.
1 files modified
18 ■■■■■ changed files
opends/src/server/org/opends/server/core/CompareOperationBasis.java 18 ●●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/core/CompareOperationBasis.java
@@ -22,7 +22,7 @@
 * CDDL HEADER END
 *
 *
 *      Copyright 2007-2008 Sun Microsystems, Inc.
 *      Copyright 2007-2009 Sun Microsystems, Inc.
 */
package org.opends.server.core;
import org.opends.messages.MessageBuilder;
@@ -185,6 +185,22 @@
   */
  public final DN getEntryDN()
  {
    if (entryDN == null) {
      try
      {
        entryDN = DN.decode(rawEntryDN);
      }
      catch (DirectoryException de)
      {
        if (debugEnabled())
        {
          TRACER.debugCaught(DebugLogLevel.ERROR, de);
        }
        setResultCode(de.getResultCode());
        appendErrorMessage(de.getMessageObject());
      }
    }
    return entryDN;
  }