directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r1095428 - /directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/schema/SchemaUtils.java
Date Wed, 20 Apr 2011 14:52:08 GMT
Author: pamarcelot
Date: Wed Apr 20 14:52:08 2011
New Revision: 1095428

URL: http://svn.apache.org/viewvc?rev=1095428&view=rev
Log:
Fixed a nasty bug which caused OpenLDAP's 'cn=config' context to be hidden in the LDAP Browser
view and the 'configContext' attribute to be removed from the RootDSE entry.

Modified:
    directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/schema/SchemaUtils.java

Modified: directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/schema/SchemaUtils.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/schema/SchemaUtils.java?rev=1095428&r1=1095427&r2=1095428&view=diff
==============================================================================
--- directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/schema/SchemaUtils.java
(original)
+++ directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/schema/SchemaUtils.java
Wed Apr 20 14:52:08 2011
@@ -325,7 +325,8 @@ public class SchemaUtils
      */
     public static boolean isOperational( AttributeType atd )
     {
-        return atd.getUsage() != UsageEnum.USER_APPLICATIONS || atd.getExtensions() == Schema.DUMMY_EXTENSIONS
+        return !UsageEnum.USER_APPLICATIONS.equals( atd.getUsage() )
+            || Schema.DUMMY_EXTENSIONS.equals( atd.getExtensions() )
             || CollectionUtils.containsAny( OPERATIONAL_ATTRIBUTES_OIDS_AND_NAMES, getLowerCaseIdentifiers(
atd ) );
     }
 



Mime
View raw message