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

gbellato
12.39.2006 4b783a48613700c856ca33735bbb0720b1da532e
Issue 634 : UTC time syntax plugin does not accept time differences including minutes.
This was due to a bad test on the string length before trying to decode it.

1 files modified
4 ■■■■ changed files
opends/src/server/org/opends/server/schema/UTCTimeSyntax.java 4 ●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/schema/UTCTimeSyntax.java
@@ -726,9 +726,9 @@
      case '+':
      case '-':
        // These are fine only if there are exactly four more digits that
        // These are fine only if there are four or two more digits that
        // specify a valid offset.
        if (length == 19)
        if ((length == 19) || (length == 17))
        {
          return hasValidOffset(valueString, 15, invalidReason);
        }