You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "Benoit Tellier (Jira)" <se...@james.apache.org> on 2020/09/21 02:01:00 UTC

[jira] [Commented] (JAMES-3380) Fix bug in search index for comparing date

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

Benoit Tellier commented on JAMES-3380:
---------------------------------------

Only the scanning search was affected.

https://github.com/linagora/james-project/pull/3791 contributed an easy fix.

> Fix bug in search index for comparing date
> ------------------------------------------
>
>                 Key: JAMES-3380
>                 URL: https://issues.apache.org/jira/browse/JAMES-3380
>             Project: James Server
>          Issue Type: New Feature
>          Components: mailbox
>            Reporter: Rémi Kowalski
>            Priority: Major
>             Fix For: 3.6.0
>
>
> The date format used to compare the date in order to sort them, used 'hh' in the date format to represent the hour instead of 'kk'.
> https://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html
> So one date in the afternoon could not be compared with a date in the morning.
> This leads to error in the memory implementation. And some flacky test passing at certain hours but not others...



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org