From commits-return-13623-apmail-directory-commits-archive=directory.apache.org@directory.apache.org Tue May 08 17:31:54 2007 Return-Path: Delivered-To: apmail-directory-commits-archive@www.apache.org Received: (qmail 94697 invoked from network); 8 May 2007 17:31:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 May 2007 17:31:52 -0000 Received: (qmail 89682 invoked by uid 500); 8 May 2007 17:31:59 -0000 Delivered-To: apmail-directory-commits-archive@directory.apache.org Received: (qmail 89648 invoked by uid 500); 8 May 2007 17:31:59 -0000 Mailing-List: contact commits-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@directory.apache.org Delivered-To: mailing list commits@directory.apache.org Received: (qmail 89637 invoked by uid 99); 8 May 2007 17:31:59 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 May 2007 10:31:59 -0700 X-ASF-Spam-Status: No, hits=-99.5 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 May 2007 10:31:51 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id B57091A983E; Tue, 8 May 2007 10:31:31 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r536266 - /directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/collective/CollectiveAttributeService.java Date: Tue, 08 May 2007 17:31:31 -0000 To: commits@directory.apache.org From: elecharny@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20070508173131.B57091A983E@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: elecharny Date: Tue May 8 10:31:30 2007 New Revision: 536266 URL: http://svn.apache.org/viewvc?view=rev&rev=536266 Log: Useing the ServerSearchResult instance to get the DN without parsing it Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/collective/CollectiveAttributeService.java Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/collective/CollectiveAttributeService.java URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/collective/CollectiveAttributeService.java?view=diff&rev=536266&r1=536265&r2=536266 ============================================================================== --- directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/collective/CollectiveAttributeService.java (original) +++ directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/collective/CollectiveAttributeService.java Tue May 8 10:31:30 2007 @@ -47,6 +47,7 @@ import org.apache.directory.server.core.partition.PartitionNexus; import org.apache.directory.server.schema.registries.AttributeTypeRegistry; import org.apache.directory.shared.ldap.message.AttributeImpl; +import org.apache.directory.shared.ldap.message.ServerSearchResult; import org.apache.directory.shared.ldap.name.LdapDN; import org.apache.directory.shared.ldap.schema.AttributeType; import org.apache.directory.shared.ldap.util.AttributeUtils; @@ -80,7 +81,7 @@ public boolean accept( Invocation invocation, SearchResult result, SearchControls controls ) throws NamingException { - LdapDN name = new LdapDN( result.getName() ); + LdapDN name = ((ServerSearchResult)result).getDn(); name = LdapDN.normalize( name, attrTypeRegistry.getNormalizerMapping() ); Attributes entry = result.getAttributes(); String[] retAttrs = controls.getReturningAttributes();