directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r675649 - /directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/schema/SchemaInterceptor.java
Date Thu, 10 Jul 2008 17:00:47 GMT
Author: elecharny
Date: Thu Jul 10 10:00:46 2008
New Revision: 675649

URL: http://svn.apache.org/viewvc?rev=675649&view=rev
Log:
Added a quick patch for ;binary values to be returned.

Modified:
    directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/schema/SchemaInterceptor.java

Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/schema/SchemaInterceptor.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/schema/SchemaInterceptor.java?rev=675649&r1=675648&r2=675649&view=diff
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/schema/SchemaInterceptor.java
(original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/schema/SchemaInterceptor.java
Thu Jul 10 10:00:46 2008
@@ -450,6 +450,12 @@
 
             try
             {
+                // Deal with the special ;binary 
+                if ( attribute.endsWith( ";binary" ) )
+                {
+                    attribute = attribute.substring( 0, attribute.length() - ";binary".length()
);
+                }
+                
                 // Check that the attribute is declared
                 if ( registries.getOidRegistry().hasOid( attribute ) )
                 {
@@ -701,7 +707,7 @@
         }
 
         // The user was searching into the subSchemaSubEntry
-        // Thgis kind of search _must_ be limited to OBJECT scope (the subSchemaSubEntry
+        // This kind of search _must_ be limited to OBJECT scope (the subSchemaSubEntry
         // does not have any sub level)
         if ( searchCtls.getSearchScope() == SearchControls.OBJECT_SCOPE )
         {



Mime
View raw message