[
https://issues.apache.org/jira/browse/DIRAPI-284?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15446440#comment-15446440
]
Emmanuel Lecharny commented on DIRAPI-284:
------------------------------------------
The new {{Dateutils}} version I just committed will allow you to get a Date
from what you pull from a LDAP server, but only when it's infinite.
At this point, supporting something else would require that the API supports
the {{interval}} syntax, which it is currently not supporting by the API.
The only solution for you would be to pull the textual representation of the
attribute, and to convert it to a long. We can write a specific {{DateUtils}}
method that does the job.
> 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)