directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r531866 - in /directory/shared/trunk/convert/src: main/java/org/apache/directory/shared/converter/schema/ test/java/org/apache/directory/shared/converter/schema/
Date Tue, 24 Apr 2007 10:30:18 GMT
Author: pamarcelot
Date: Tue Apr 24 03:30:15 2007
New Revision: 531866

URL: http://svn.apache.org/viewvc?view=rev&rev=531866
Log:
Fix for DIRSERVER-913 (shared-converter generates wrong LDIF ('true' instead of 'TRUE')).

Modified:
    directory/shared/trunk/convert/src/main/java/org/apache/directory/shared/converter/schema/AttributeTypeHolder.java
    directory/shared/trunk/convert/src/main/java/org/apache/directory/shared/converter/schema/SchemaElementImpl.java
    directory/shared/trunk/convert/src/test/java/org/apache/directory/shared/converter/schema/TestSchemaToLdif.java

Modified: directory/shared/trunk/convert/src/main/java/org/apache/directory/shared/converter/schema/AttributeTypeHolder.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/convert/src/main/java/org/apache/directory/shared/converter/schema/AttributeTypeHolder.java?view=diff&rev=531866&r1=531865&r2=531866
==============================================================================
--- directory/shared/trunk/convert/src/main/java/org/apache/directory/shared/converter/schema/AttributeTypeHolder.java
(original)
+++ directory/shared/trunk/convert/src/main/java/org/apache/directory/shared/converter/schema/AttributeTypeHolder.java
Tue Apr 24 03:30:15 2007
@@ -374,19 +374,19 @@
         // The single value flag
         if ( singleValue )
         {
-            sb.append( "m-singleValue: true\n" );
+            sb.append( "m-singleValue: TRUE\n" );
         }
 
         // The collective flag
         if ( collective )
         {
-            sb.append( "m-collective: true\n" );
+            sb.append( "m-collective: TRUE\n" );
         }
 
         // The not user modifiable flag
         if ( noUserModification )
         {
-            sb.append( "m-noUserModification: true\n" );
+            sb.append( "m-noUserModification: TRUE\n" );
         }
 
         // The usage value

Modified: directory/shared/trunk/convert/src/main/java/org/apache/directory/shared/converter/schema/SchemaElementImpl.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/convert/src/main/java/org/apache/directory/shared/converter/schema/SchemaElementImpl.java?view=diff&rev=531866&r1=531865&r2=531866
==============================================================================
--- directory/shared/trunk/convert/src/main/java/org/apache/directory/shared/converter/schema/SchemaElementImpl.java
(original)
+++ directory/shared/trunk/convert/src/main/java/org/apache/directory/shared/converter/schema/SchemaElementImpl.java
Tue Apr 24 03:30:15 2007
@@ -233,7 +233,7 @@
         // The obsolete flag, only if "true"
         if ( obsolete )
         {
-            sb.append( "m-obsolete: true\n" );
+            sb.append( "m-obsolete: TRUE\n" );
         }
         
         return sb.toString();

Modified: directory/shared/trunk/convert/src/test/java/org/apache/directory/shared/converter/schema/TestSchemaToLdif.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/convert/src/test/java/org/apache/directory/shared/converter/schema/TestSchemaToLdif.java?view=diff&rev=531866&r1=531865&r2=531866
==============================================================================
--- directory/shared/trunk/convert/src/test/java/org/apache/directory/shared/converter/schema/TestSchemaToLdif.java
(original)
+++ directory/shared/trunk/convert/src/test/java/org/apache/directory/shared/converter/schema/TestSchemaToLdif.java
Tue Apr 24 03:30:15 2007
@@ -85,7 +85,7 @@
             "m-oid: 1.3.6.1.4.1.18060.0.4.2.3.14\n" +
             "m-name: objectClass\n" +
             "m-description: An objectClass\n" +
-            "m-obsolete: true\n" +
+            "m-obsolete: TRUE\n" +
             "m-supObjectClass: top\n" +
             "m-typeObjectClass: ABSTRACT\n" +
             "m-must: attr1\n" +
@@ -121,7 +121,7 @@
             "objectclass: top\n" +
             "m-oid: 1.3.6.1.4.1.18060.0.4.2.3.14\n" +
             "m-description: An objectClass\n" +
-            "m-obsolete: true\n" +
+            "m-obsolete: TRUE\n" +
             "m-supObjectClass: top\n" +
             "m-typeObjectClass: ABSTRACT\n" +
             "m-must: attr1\n" +
@@ -331,7 +331,7 @@
             "objectclass: metaTop\n" +
             "objectclass: top\n" +
             "m-oid: 1.3.6.1.4.1.18060.0.4.2.3.14\n" +
-            "m-obsolete: true\n\n";
+            "m-obsolete: TRUE\n\n";
 
         assertEquals( expected, transform( "testOCObsolete" ) );
     }
@@ -488,7 +488,7 @@
             "objectclass: metaTop\n" +
             "objectclass: top\n" +
             "m-oid: 1.3.6.1.4.1.18060.0.4.2.3.14\n" +
-            "m-obsolete: true\n\n";
+            "m-obsolete: TRUE\n\n";
 
         assertEquals( expected, transform( "testATObsolete" ) );
     }
@@ -653,7 +653,7 @@
             "objectclass: metaTop\n" +
             "objectclass: top\n" +
             "m-oid: 1.3.6.1.4.1.18060.0.4.2.3.14\n" +
-            "m-singleValue: true\n\n";
+            "m-singleValue: TRUE\n\n";
 
         assertEquals( expected, transform( "testATSingleValue" ) );
     }
@@ -668,7 +668,7 @@
             "objectclass: metaTop\n" +
             "objectclass: top\n" +
             "m-oid: 1.3.6.1.4.1.18060.0.4.2.3.14\n" +
-            "m-collective: true\n\n";
+            "m-collective: TRUE\n\n";
 
         assertEquals( expected, transform( "testATCollective" ) );
     }
@@ -683,7 +683,7 @@
             "objectclass: metaTop\n" +
             "objectclass: top\n" +
             "m-oid: 1.3.6.1.4.1.18060.0.4.2.3.14\n" +
-            "m-noUserModification: true\n\n";
+            "m-noUserModification: TRUE\n\n";
 
         assertEquals( expected, transform( "testATNoUserModification" ) );
     }



Mime
View raw message