directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Lecharny (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DIRAPI-284) DateUtils throws an exception for certain timestamps
Date Mon, 29 Aug 2016 15:19:20 GMT

    [ https://issues.apache.org/jira/browse/DIRAPI-284?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15446157#comment-15446157
] 

Emmanuel Lecharny commented on DIRAPI-284:
------------------------------------------

Grrr... Another example of Micro$oft not being able to respect the standars :/

{{GeneralizedTime}} *must* respect this format :

{noformat}
GeneralizedTime = century year month day hour
                      [ minute [ second / leap-second ] ]
                      [ fraction ]
                      g-time-zone
g-time-zone     = %x5A  ; "Z" | g-differential
g-differential  = ( MINUS / PLUS ) hour [ minute ]
{noformat}

{{9223372036854775807}} is certainly not valid wrt to the ISO8601 spec :/

I can't wait for M$ to go bankrupt...

Ok, at this point, teh only solution would be to add a specific check for this stupid number,
and accept it. 

PS : Bill Gates and co, you are a bunch of morons !


> 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
>
> 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)

Mime
View raw message