You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2010/10/30 02:11:40 UTC

svn commit: r1028954 - /directory/shared/branches/shared-config/ldap-client-api/src/main/java/org/apache/directory/ldap/client/api/LdapNetworkConnection.java

Author: elecharny
Date: Sat Oct 30 00:11:40 2010
New Revision: 1028954

URL: http://svn.apache.org/viewvc?rev=1028954&view=rev
Log:
Applied the fix from trunk to make the build working

Modified:
    directory/shared/branches/shared-config/ldap-client-api/src/main/java/org/apache/directory/ldap/client/api/LdapNetworkConnection.java

Modified: directory/shared/branches/shared-config/ldap-client-api/src/main/java/org/apache/directory/ldap/client/api/LdapNetworkConnection.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-config/ldap-client-api/src/main/java/org/apache/directory/ldap/client/api/LdapNetworkConnection.java?rev=1028954&r1=1028953&r2=1028954&view=diff
==============================================================================
--- directory/shared/branches/shared-config/ldap-client-api/src/main/java/org/apache/directory/ldap/client/api/LdapNetworkConnection.java (original)
+++ directory/shared/branches/shared-config/ldap-client-api/src/main/java/org/apache/directory/ldap/client/api/LdapNetworkConnection.java Sat Oct 30 00:11:40 2010
@@ -3125,13 +3125,21 @@ public class LdapNetworkConnection exten
         try
         {
             JarLdifSchemaLoader jarSchemaLoader = new JarLdifSchemaLoader();
+
+            // we enable all the schemas so that need not check with server for enabled schemas
+            Collection<Schema> schemas = jarSchemaLoader.getAllSchemas();
+            for ( Schema s : schemas )
+            {
+                s.enable();
+            }
+
             loadSchema( jarSchemaLoader );
         }
-        catch( LdapException e )
+        catch ( LdapException e )
         {
             throw e;
         }
-        catch( Exception e )
+        catch ( Exception e )
         {
             LOG.error( "failed to load the schema using JarLdifSchemaLoader", e );
             throw new LdapException( e );