directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r659748 - /directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/jndi/NamingEnumerationAdapter.java
Date Sat, 24 May 2008 04:37:58 GMT
Author: elecharny
Date: Fri May 23 21:37:56 2008
New Revision: 659748

URL: http://svn.apache.org/viewvc?rev=659748&view=rev
Log:
Modify the creation of SearchResults to set the isRelative() method to return false;

Modified:
    directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/jndi/NamingEnumerationAdapter.java

Modified: directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/jndi/NamingEnumerationAdapter.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/jndi/NamingEnumerationAdapter.java?rev=659748&r1=659747&r2=659748&view=diff
==============================================================================
--- directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/jndi/NamingEnumerationAdapter.java
(original)
+++ directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/jndi/NamingEnumerationAdapter.java
Fri May 23 21:37:56 2008
@@ -116,7 +116,10 @@
             JndiUtils.wrap( e );
         }
         
-        return new SearchResult( entry.getDn().getUpName(), null, ServerEntryUtils.toAttributesImpl(
entry ) );
+        SearchResult result = new SearchResult( entry.getDn().getUpName(), null, ServerEntryUtils.toAttributesImpl(
entry ) );
+        result.setRelative( false );
+        
+        return result;
     }
 
 
@@ -151,6 +154,9 @@
             throw nsee;
         }
         
-        return new SearchResult( entry.getDn().getUpName(), null, ServerEntryUtils.toAttributesImpl(
entry ) );
+        SearchResult result = new SearchResult( entry.getDn().getUpName(), null, ServerEntryUtils.toAttributesImpl(
entry ) );
+        result.setRelative( false );
+        
+        return result;
     }
 }



Mime
View raw message