From ec8dd4540b7be98f80e073c1df7bbc536241571a Mon Sep 17 00:00:00 2001
From: dugan <dugan@localhost>
Date: Tue, 05 Dec 2006 04:16:14 +0000
Subject: [PATCH] org.opends.server.schema.LDAPSyntaxDescription.java does not accept extensions as specified by RFC4512 :

---
 opendj-sdk/opends/src/server/org/opends/server/messages/SchemaMessages.java |   26 ++++++++++++++++++++++++++
 1 files changed, 26 insertions(+), 0 deletions(-)

diff --git a/opendj-sdk/opends/src/server/org/opends/server/messages/SchemaMessages.java b/opendj-sdk/opends/src/server/org/opends/server/messages/SchemaMessages.java
index 4d55bd4..47e7233 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/messages/SchemaMessages.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/messages/SchemaMessages.java
@@ -2945,7 +2945,24 @@
   public static final int MSGID_ATTR_SYNTAX_AUTHPW_INVALID_TRAILING_CHAR =
        CATEGORY_MASK_SCHEMA | SEVERITY_MASK_SEVERE_ERROR | 263;
 
+  /**
+   * The message ID for the message that will be used if an attribute syntax
+   * extension value cannot be parsed because an invalid character was found.
+   * This takes a two arguments, which are the provided value, and the position
+   * of the invalid character.
+   */
+  public static final int
+       MSGID_ATTR_SYNTAX_ATTRSYNTAX_EXTENSION_INVALID_CHARACTER =
+            CATEGORY_MASK_SCHEMA | SEVERITY_MASK_MILD_ERROR | 264;
 
+  /**
+   * The message ID for the message that will be used if an attribute syntax
+   * extension value cannot be parsed. This takes one argument, a string
+   * representation of the exception that was caught.
+   */
+  public static final int
+       MSGID_ATTR_SYNTAX_ATTRSYNTAX_INVALID_EXTENSION =
+            CATEGORY_MASK_SCHEMA | SEVERITY_MASK_MILD_ERROR | 265;
 
   /**
    * Associates a set of generic messages with the message IDs defined in this
@@ -4178,6 +4195,15 @@
     registerMessage(MSGID_ATTR_SYNTAX_RELATIVE_SUBTREE_SPECIFICATION_INVALID,
                     "The provided value \"%s\" could not be parsed as a" +
                     " valid relative subtree specification.");
+
+    registerMessage(MSGID_ATTR_SYNTAX_ATTRSYNTAX_EXTENSION_INVALID_CHARACTER,
+            "The provided value \"%s\" could not be parsed as an " +
+            "attribute syntax extension because an invalid character"+
+            "was found at position %d.");
+
+    registerMessage(MSGID_ATTR_SYNTAX_ATTRSYNTAX_INVALID_EXTENSION,
+           "The attribute syntax could not be parsed because of an"+
+           "invalid extension."+ "%s.");
   }
 }
 

--
Gitblit v1.10.0