directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r525880 - /directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/jndi/ServerContext.java
Date Thu, 05 Apr 2007 16:59:59 GMT
Author: elecharny
Date: Thu Apr  5 09:59:58 2007
New Revision: 525880

URL: http://svn.apache.org/viewvc?view=rev&rev=525880
Log:
Remove some useless code, and use the lookup( ServiceContext ) method

Modified:
    directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/jndi/ServerContext.java

Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/jndi/ServerContext.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/jndi/ServerContext.java?view=diff&rev=525880&r1=525879&r2=525880
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/jndi/ServerContext.java
(original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/jndi/ServerContext.java
Thu Apr  5 09:59:58 2007
@@ -50,6 +50,7 @@
 import org.apache.directory.server.core.authn.AuthenticationService;
 import org.apache.directory.server.core.authn.LdapPrincipal;
 import org.apache.directory.server.core.interceptor.context.BindServiceContext;
+import org.apache.directory.server.core.interceptor.context.LookupServiceContext;
 import org.apache.directory.server.core.partition.PartitionNexus;
 import org.apache.directory.server.core.partition.PartitionNexusProxy;
 import org.apache.directory.shared.ldap.constants.SchemaConstants;
@@ -137,11 +138,6 @@
         {
             throw new NameNotFoundException( dn + " does not exist" );
         }
-
-        if ( dn.size() == 0 )
-        {
-            return;
-        }
     }
 
 
@@ -583,7 +579,8 @@
     {
         Object obj;
         LdapDN target = buildTarget( name );
-        Attributes attributes = nexusProxy.lookup( target );
+        
+        Attributes attributes = nexusProxy.lookup( new LookupServiceContext( target ) );
 
         try
         {



Mime
View raw message