directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r981850 - /directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/LdapServersManagerIO.java
Date Tue, 03 Aug 2010 12:57:11 GMT
Author: pamarcelot
Date: Tue Aug  3 12:57:11 2010
New Revision: 981850

URL: http://svn.apache.org/viewvc?rev=981850&view=rev
Log:
Fixed a bug where the information of an unrecognized Server Adapter (because it has been disactivated
or uninstalled) was lost between two launches of Studio.

Modified:
    directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/LdapServersManagerIO.java

Modified: directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/LdapServersManagerIO.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/LdapServersManagerIO.java?rev=981850&r1=981849&r2=981850&view=diff
==============================================================================
--- directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/LdapServersManagerIO.java
(original)
+++ directory/studio/trunk/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/LdapServersManagerIO.java
Tue Aug  3 12:57:11 2010
@@ -144,9 +144,12 @@ public class LdapServersManagerIO
             else
             {
                 // The Adapter Extension has not been found
-                // Assigning an "unknown" Adapter Extension
+                // Creating an "unknown" Adapter Extension
                 UnknownLdapServerAdapterExtension unknownLdapServerAdapterExtension = new
UnknownLdapServerAdapterExtension();
 
+                // Adapter Id
+                unknownLdapServerAdapterExtension.setId( adapterId );
+
                 // Adapter Name
                 Attribute adapterNameAttribute = element.attribute( ADAPTER_NAME_ATTRIBUTE
);
                 if ( adapterNameAttribute != null )
@@ -167,6 +170,9 @@ public class LdapServersManagerIO
                 {
                     unknownLdapServerAdapterExtension.setVersion( adapterVersionAttribute.getValue()
);
                 }
+
+                // Assigning the "unknown" Adapter Extension to the server
+                server.setLdapServerAdapterExtension( unknownLdapServerAdapterExtension );
             }
         }
         else



Mime
View raw message