You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by ak...@apache.org on 2006/01/13 08:10:32 UTC

svn commit: r368625 - in /directory/trunks/apacheds/src/main/java/org/apache/ldap/server/jndi: ServerContext.java ServerDirContext.java

Author: akarasulu
Date: Thu Jan 12 23:10:30 2006
New Revision: 368625

URL: http://svn.apache.org/viewcvs?rev=368625&view=rev
Log:
removing the copies of controls again

Modified:
    directory/trunks/apacheds/src/main/java/org/apache/ldap/server/jndi/ServerContext.java
    directory/trunks/apacheds/src/main/java/org/apache/ldap/server/jndi/ServerDirContext.java

Modified: directory/trunks/apacheds/src/main/java/org/apache/ldap/server/jndi/ServerContext.java
URL: http://svn.apache.org/viewcvs/directory/trunks/apacheds/src/main/java/org/apache/ldap/server/jndi/ServerContext.java?rev=368625&r1=368624&r2=368625&view=diff
==============================================================================
--- directory/trunks/apacheds/src/main/java/org/apache/ldap/server/jndi/ServerContext.java (original)
+++ directory/trunks/apacheds/src/main/java/org/apache/ldap/server/jndi/ServerContext.java Thu Jan 12 23:10:30 2006
@@ -320,10 +320,7 @@
          * environment besides whats in the hashtable for env.
          */
         nexusProxy.add( target.toString(), target, attributes );
-        ServerLdapContext ctx = new ServerLdapContext( service, principal, target );
-        Control [] controls = ( Control [] ) ( ( ServerLdapContext ) this ).getRequestControls().clone();
-        ctx.setRequestControls( controls );
-        return ctx;
+        return new ServerLdapContext( service, principal, target );
     }
 
 

Modified: directory/trunks/apacheds/src/main/java/org/apache/ldap/server/jndi/ServerDirContext.java
URL: http://svn.apache.org/viewcvs/directory/trunks/apacheds/src/main/java/org/apache/ldap/server/jndi/ServerDirContext.java?rev=368625&r1=368624&r2=368625&view=diff
==============================================================================
--- directory/trunks/apacheds/src/main/java/org/apache/ldap/server/jndi/ServerDirContext.java (original)
+++ directory/trunks/apacheds/src/main/java/org/apache/ldap/server/jndi/ServerDirContext.java Thu Jan 12 23:10:30 2006
@@ -35,7 +35,6 @@
 import javax.naming.directory.SearchControls;
 import javax.naming.event.EventDirContext;
 import javax.naming.event.NamingListener;
-import javax.naming.ldap.Control;
 import javax.naming.spi.DirStateFactory;
 import javax.naming.spi.DirectoryManager;