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 2008/07/10 19:00:47 UTC
svn commit: r675649 -
/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/schema/SchemaInterceptor.java
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 )
{