From 65fd707e4aefaf3c3f85774b1ca20e136b786253 Mon Sep 17 00:00:00 2001
From: floblanc <floblanc@localhost>
Date: Fri, 06 Nov 2009 08:52:25 +0000
Subject: [PATCH] Fix issue 4341 CompareOperationBasis does not properly handle get/setAttributeType
---
opends/src/server/org/opends/server/core/CompareOperationBasis.java | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/opends/src/server/org/opends/server/core/CompareOperationBasis.java b/opends/src/server/org/opends/server/core/CompareOperationBasis.java
index 2d6e54f..26287d4 100644
--- a/opends/src/server/org/opends/server/core/CompareOperationBasis.java
+++ b/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();
}
--
Gitblit v1.10.0