directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r569698 - /directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/support/SearchHandler.java
Date Sat, 25 Aug 2007 16:27:55 GMT
Author: elecharny
Date: Sat Aug 25 09:27:54 2007
New Revision: 569698

URL: http://svn.apache.org/viewvc?rev=569698&view=rev
Log:
Used the newly declared constant for "ref"

Modified:
    directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/support/SearchHandler.java

Modified: directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/support/SearchHandler.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/support/SearchHandler.java?rev=569698&r1=569697&r2=569698&view=diff
==============================================================================
--- directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/support/SearchHandler.java
(original)
+++ directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/support/SearchHandler.java
Sat Aug 25 09:27:54 2007
@@ -165,9 +165,9 @@
         SessionRegistry.getSingleton().addOutstandingRequest( session, req );
 
         // check the attributes to see if a referral's ref attribute is included
-        if ( retAttrs.size() > 0 && !retAttrs.contains( "ref" ) )
+        if ( retAttrs.size() > 0 && !retAttrs.contains( SchemaConstants.REF_AT
) )
         {
-            retAttrs.add( "ref" );
+            retAttrs.add( SchemaConstants.REF_AT );
             ids = ( String[] ) retAttrs.toArray( ArrayUtils.EMPTY_STRING_ARRAY );
         }
         else if ( retAttrs.size() > 0 )



Mime
View raw message