Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 50A2E200B9E for ; Fri, 2 Sep 2016 10:39:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 4F762160AAC; Fri, 2 Sep 2016 08:39:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id B11B8160ACE for ; Fri, 2 Sep 2016 10:39:21 +0200 (CEST) Received: (qmail 76806 invoked by uid 500); 2 Sep 2016 08:39:20 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 76676 invoked by uid 99); 2 Sep 2016 08:39:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Sep 2016 08:39:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 8AD742C1B82 for ; Fri, 2 Sep 2016 08:39:20 +0000 (UTC) Date: Fri, 2 Sep 2016 08:39:20 +0000 (UTC) From: "TvT (JIRA)" To: dev@directory.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (DIRAPI-284) DateUtils throws an exception for certain timestamps MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 02 Sep 2016 08:39:22 -0000 [ https://issues.apache.org/jira/browse/DIRAPI-284?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15457951#comment-15457951 ] TvT commented on DIRAPI-284: ---------------------------- Is the patch ok this way? > DateUtils throws an exception for certain timestamps > ---------------------------------------------------- > > Key: DIRAPI-284 > URL: https://issues.apache.org/jira/browse/DIRAPI-284 > Project: Directory Client API > Issue Type: Bug > Affects Versions: 1.0.0-RC1 > Environment: All > Reporter: TvT > Fix For: 1.0.0-RC2 > > > The DateUtils class can't handle certain timestamps. > The following code > _DateUtils.getDate("9223372036854775807");_ > throws an "java.lang.RuntimeException: java.text.ParseException: ERR_04363 Invalid Time too short, expected field 'fraction of second' or 'timezone'." > The value in [microsofts active directory |https://msdn.microsoft.com/en-us/library/ms675098%28v=vs.85%29.aspx]indicates that e.g. an account never expires... -- This message was sent by Atlassian JIRA (v6.3.4#6332)