From 39cfb739395cca91589c958fda4790c87ce0c9c8 Mon Sep 17 00:00:00 2001
From: Nicolas Capponi <nicolas.capponi@forgerock.com>
Date: Fri, 02 Jan 2015 14:42:16 +0000
Subject: [PATCH] OPENDJ-1585 Re-implement DN normalization in server

---
 opendj3-server-dev/src/server/org/opends/server/extensions/EntryDNVirtualAttributeProvider.java |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/opendj3-server-dev/src/server/org/opends/server/extensions/EntryDNVirtualAttributeProvider.java b/opendj3-server-dev/src/server/org/opends/server/extensions/EntryDNVirtualAttributeProvider.java
index d56b4fa..616bfbb 100644
--- a/opendj3-server-dev/src/server/org/opends/server/extensions/EntryDNVirtualAttributeProvider.java
+++ b/opendj3-server-dev/src/server/org/opends/server/extensions/EntryDNVirtualAttributeProvider.java
@@ -22,7 +22,7 @@
  *
  *
  *      Copyright 2008-2009 Sun Microsystems, Inc.
- *      Portions Copyright 2012-2014 ForgeRock AS
+ *      Portions Copyright 2012-2015 ForgeRock AS
  */
 package org.opends.server.extensions;
 
@@ -73,8 +73,8 @@
   @Override()
   public Attribute getValues(Entry entry, VirtualAttributeRule rule)
   {
-    String normDNString = entry.getName().toNormalizedString();
-    return Attributes.create(rule.getAttributeType(), normDNString);
+    String dnString = entry.getName().toString();
+    return Attributes.create(rule.getAttributeType(), dnString);
   }
 
   /** {@inheritDoc} */
@@ -166,8 +166,7 @@
                               SearchOperation searchOperation,
                               boolean isPreIndexed)
   {
-    return isSearchable(rule.getAttributeType(), searchOperation.getFilter(),
-                        0);
+    return isSearchable(rule.getAttributeType(), searchOperation.getFilter(), 0);
   }
 
 

--
Gitblit v1.10.0