From 0dedfd76b8a0938d26ea2a656bca04b63bd28739 Mon Sep 17 00:00:00 2001
From: Nicolas Capponi <nicolas.capponi@forgerock.com>
Date: Wed, 22 Oct 2014 14:40:59 +0000
Subject: [PATCH] OPENDJ-1591 GeneralizedTime parser accepts lowercase string
---
opendj-sdk/opendj-core/src/main/java/org/forgerock/opendj/ldap/GeneralizedTime.java | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/opendj-sdk/opendj-core/src/main/java/org/forgerock/opendj/ldap/GeneralizedTime.java b/opendj-sdk/opendj-core/src/main/java/org/forgerock/opendj/ldap/GeneralizedTime.java
index a3354e9..006d69b 100644
--- a/opendj-sdk/opendj-core/src/main/java/org/forgerock/opendj/ldap/GeneralizedTime.java
+++ b/opendj-sdk/opendj-core/src/main/java/org/forgerock/opendj/ldap/GeneralizedTime.java
@@ -345,7 +345,8 @@
break;
case 'Z':
- // This is fine only if we are at the end of the value.
+ case 'z':
+ // This is fine only if we are at the end of the value.
if (length == 11) {
final TimeZone tz = TIME_ZONE_UTC_OBJ;
return createTime(valueString, year, month, day, hour, minute, second, tz);
@@ -415,6 +416,7 @@
break;
case 'Z':
+ case 'z':
// This is fine only if we are at the end of the value.
if (length == 13) {
final TimeZone tz = TIME_ZONE_UTC_OBJ;
@@ -454,6 +456,7 @@
1000);
case 'Z':
+ case 'z':
// This is fine only if we are at the end of the value.
if (length == 15) {
final TimeZone tz = TIME_ZONE_UTC_OBJ;
@@ -616,6 +619,7 @@
break;
case 'Z':
+ case 'z':
// This is only acceptable if we're at the end of the value.
if (i != (value.length() - 1)) {
final LocalizableMessage message =
--
Gitblit v1.10.0