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

Fabio Pistolesi
27.17.2015 1a9e835392a6bb403503f00b7842a74460cbdf09
OPENDJ-2047 CR-7061 SDK AttributeTypeSyntax should accept no space before closing parentheses

A character more than necessary was read while parsing the attribute name.
3 files modified
4 ■■■ changed files
opendj-core/src/main/java/org/forgerock/opendj/ldap/schema/SchemaUtils.java 1 ●●●● patch | view | raw | blame | history
opendj-core/src/test/java/org/forgerock/opendj/ldap/schema/AttributeTypeSyntaxTest.java 2 ●●●●● patch | view | raw | blame | history
opendj-server-legacy/src/test/java/org/opends/server/schema/AttributeTypeSyntaxTest.java 1 ●●●● patch | view | raw | blame | history
opendj-core/src/main/java/org/forgerock/opendj/ldap/schema/SchemaUtils.java
@@ -135,7 +135,6 @@
            if (c == '\'') {
                reader.reset();
                values = Collections.singletonList(readQuotedDescriptor(reader, allowCompatChars));
                reader.read();
            } else if (c == '(') {
                // Skip over any leading spaces
                reader.skipWhitespaces();
opendj-core/src/test/java/org/forgerock/opendj/ldap/schema/AttributeTypeSyntaxTest.java
@@ -55,6 +55,8 @@
                        + " SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 SINGLE-VALUE"
                        + " COLLECTIVE USAGE userApplications )", true },
            {
                "(1.2.8.5 NAME 'testtype')", true },
            {
                "(1.2.8.5 NAME 'testtype' DESC 'full type')", true },
            {
                "(1.2.8.5 NAME 'testType' DESC 'full type' EQUALITY caseIgnoreMatch "
opendj-server-legacy/src/test/java/org/opends/server/schema/AttributeTypeSyntaxTest.java
@@ -79,6 +79,7 @@
          " SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 SINGLE-VALUE" +
          " COLLECTIVE USAGE userApplications )",
          true},
          {"(1.2.8.5 NAME 'testtype')", true},
        {"(1.2.8.5 NAME 'testtype' DESC 'full type')",
              true},
        {"(1.2.8.5 NAME 'testType' DESC 'full type' EQUALITY caseIgnoreMatch " +