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

sin
22.31.2009 11f231e32df0589a53aebb499540c1d4a1d9a0fd
issue# 3388:Name exceptions should always been allowed if ds-cfg-allow-attribute-name-exceptions=true
1 files modified
5 ■■■■ changed files
opends/src/server/org/opends/server/schema/ObjectClassSyntax.java 5 ●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/schema/ObjectClassSyntax.java
@@ -1161,6 +1161,8 @@
    // Skip over any spaces at the beginning of the value.
    char c = '\u0000';
    int  length = lowerStr.length();
    boolean allowExceptions =
                  DirectoryServer.allowAttributeNameExceptions();
    while ((startPos < length) && ((c = lowerStr.charAt(startPos)) == ' '))
    {
      startPos++;
@@ -1200,7 +1202,8 @@
            lastWasPeriod = true;
          }
        }
        else if (! isDigit(c))
        else if (! (isDigit(c) ||
                allowExceptions && (isAlpha(c) || (c=='-') || (c=='_'))))
        {
          // Technically, this must be an illegal character.  However, it is
          // possible that someone just got sloppy and did not include a space