directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1028954 - /directory/shared/branches/shared-config/ldap-client-api/src/main/java/org/apache/directory/ldap/client/api/LdapNetworkConnection.java
Date Sat, 30 Oct 2010 00:11:40 GMT
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 );



Mime
View raw message