[ 
https://issues.apache.org/jira/browse/IMAP-268?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Wojtek Strzalka resolved IMAP-268.
----------------------------------

    Resolution: Fixed

done

> Possible race condition
> -----------------------
>
>                 Key: IMAP-268
>                 URL: https://issues.apache.org/jira/browse/IMAP-268
>             Project: JAMES Imap
>          Issue Type: Bug
>            Reporter: Wojtek Strzalka
>            Assignee: Wojtek Strzalka
>
> When selecting messages UIDs are loaded to UidToMsnConverter.
> Then when unsoliciteted response is created it reads message count directly 
> from the store - when change is notified client can ask for the message 
> before it's added to UidToMsnConverter (via listener) and this causes BAD 
> when there is an error in calculating range.
> To avoid this (and also avoid asking store each time) message count should be 
> computed from selected list.
> The only question is:
> 1. should we return all the messages in the UidToMsnConverter (messages are 
> not delete from there until EXPUNGED is returned) - this is what Zimbra do
> 2. should we do real message count UidToMsnConverter size - expungedUids size 
> (this is very similiar to what we do now)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to