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

floblanc
06.52.2009 65fd707e4aefaf3c3f85774b1ca20e136b786253
Fix issue 4341 CompareOperationBasis does not properly handle get/setAttributeType
2 files modified
12 ■■■■■ changed files
opends/src/server/org/opends/server/core/CompareOperationBasis.java 5 ●●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/core/ModifyOperationBasis.java 7 ●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/core/CompareOperationBasis.java
@@ -233,6 +233,10 @@
   */
  public final AttributeType getAttributeType()
  {
    if (attributeType == null) {
      attributeType = DirectoryServer.getAttributeType(
          rawAttributeType.toLowerCase());
    }
    return attributeType;
  }
@@ -244,6 +248,7 @@
  public void setAttributeType(AttributeType attributeType)
  {
    this.attributeType = attributeType;
    this.rawAttributeType = attributeType.getNameOrOID();
  }
opends/src/server/org/opends/server/core/ModifyOperationBasis.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;
@@ -291,6 +291,11 @@
  throws DirectoryException
  {
    modifications.add(modification);
    if (modification != null) {
      rawModifications.add(new LDAPModification(
            modification.getModificationType(),
            new LDAPAttribute(modification.getAttribute())));
    }
  }
  /**