From ed21539053cb87c84eb9e31c182d631ac2766810 Mon Sep 17 00:00:00 2001
From: gbellato <gbellato@localhost>
Date: Tue, 12 Sep 2006 10:39:10 +0000
Subject: [PATCH] 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.
---
opendj-sdk/opends/src/server/org/opends/server/schema/UTCTimeSyntax.java | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/opendj-sdk/opends/src/server/org/opends/server/schema/UTCTimeSyntax.java b/opendj-sdk/opends/src/server/org/opends/server/schema/UTCTimeSyntax.java
index ccd111c..42c2010 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/schema/UTCTimeSyntax.java
+++ b/opendj-sdk/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);
}
--
Gitblit v1.10.0