mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Matthew Swift
17.18.2011 1a990d339cac38fa16ab66db896ebdaede6dcdb8
Allow "." and "_" in non-numeric OIDs by default as these are used by collation rules in OpenDJ.
3 files modified
22 ■■■■■ changed files
opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/schema/Schema.java 6 ●●●●● patch | view | raw | blame | history
opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/schema/SchemaCompatOptions.java 14 ●●●●● patch | view | raw | blame | history
opendj3/opendj-ldap-sdk/src/test/java/org/forgerock/opendj/ldap/AttributeDescriptionTestCase.java 2 ●●● patch | view | raw | blame | history
opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/schema/Schema.java
@@ -1899,14 +1899,16 @@
  /**
   * Returns {@code true} if this schema allows certain illegal characters
   * in OIDs and attribute options. When this compatibility option is set to
   * {@code true} the following illegal characters will be permitted:
   * {@code true} the following illegal characters will be permitted in addition
   * to those permitted in section 1.4 of RFC 4512:
   *
   * <pre>
   * USCORE  = %x5F ; underscore ("_")
   * DOT     = %x2E ; period (".")
   * </pre>
   *
   * By default this compatibility option is set to {@code false}.
   * By default this compatibility option is set to {@code true} because these
   * characters are often used for naming purposes (such as collation rules).
   *
   * @return {@code true} if this schema allows certain illegal characters
   *         in OIDs and attribute options.
opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/schema/SchemaCompatOptions.java
@@ -67,7 +67,7 @@
  private boolean allowZeroLengthDirectoryStrings = false;
  private boolean allowMalformedNamesAndOptions = false;
  private boolean allowMalformedNamesAndOptions = true;
@@ -82,14 +82,16 @@
  /**
   * Returns {@code true} if the schema should allow certain illegal characters
   * in OIDs and attribute options. When this compatibility option is set to
   * {@code true} the following illegal characters will be permitted:
   * {@code true} the following illegal characters will be permitted in addition
   * to those permitted in section 1.4 of RFC 4512:
   *
   * <pre>
   * USCORE  = %x5F ; underscore ("_")
   * DOT     = %x2E ; period (".")
   * </pre>
   *
   * By default this compatibility option is set to {@code false}.
   * By default this compatibility option is set to {@code true} because these
   * characters are often used for naming purposes (such as collation rules).
   *
   * @return {@code true} if the schema should allow certain illegal characters
   *         in OIDs and attribute options.
@@ -106,14 +108,16 @@
  /**
   * Specifies whether or not the schema should allow certain illegal characters
   * in OIDs and attribute options. When this compatibility option is set to
   * {@code true} the following illegal characters will be permitted:
   * {@code true} the following illegal characters will be permitted in addition
   * to those permitted in section 1.4 of RFC 4512:
   *
   * <pre>
   * USCORE  = %x5F ; underscore ("_")
   * DOT     = %x2E ; period (".")
   * </pre>
   *
   * By default this compatibility option is set to {@code false}.
   * By default this compatibility option is set to {@code true} because these
   * characters are often used for naming purposes (such as collation rules).
   *
   * @param allowMalformedNamesAndOptions
   *          {@code true} if the schema should allow certain illegal characters
opendj3/opendj-ldap-sdk/src/test/java/org/forgerock/opendj/ldap/AttributeDescriptionTestCase.java
@@ -114,7 +114,7 @@
  public Object[][] dataForValueOfInvalidAttributeDescriptions()
  {
    return new Object[][] { { "" }, { " " }, { ";" }, { " ; " }, { "0cn" },
        { "cn." }, { "cn;foo+bar" }, { "cn;foo;foo+bar" }, { ";foo" },
        { "cn+" }, { "cn;foo+bar" }, { "cn;foo;foo+bar" }, { ";foo" },
        { "cn;" }, { "cn;;foo" }, { "cn; ;foo" }, { "cn;foo;" },
        { "cn;foo; " }, { "cn;foo;;bar" }, { "cn;foo; ;bar" },
        { "cn;foo;bar;;" }, { "1a" }, { "1.a" }, { "1-" }, { "1.1a" },