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/06/18 04:33:00 UTC

[jira] [Closed] (JAMES-3129) Race condition upon flag update for message sent via JMAP

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

Benoit Tellier closed JAMES-3129.
---------------------------------
    Resolution: Fixed

Contributed

> Race condition upon flag update for message sent via JMAP
> ---------------------------------------------------------
>
>                 Key: JAMES-3129
>                 URL: https://issues.apache.org/jira/browse/JAMES-3129
>             Project: James Server
>          Issue Type: New Feature
>          Components: JMAP, MailStore &amp; MailRepository, Queue
>            Reporter: Benoit Tellier
>            Assignee: Antoine Duprat
>            Priority: Major
>             Fix For: 3.5.0
>
>
> https://github.com/linagora/james-project/pull/3242/commits/62bab3269ceef65c1741fbbf243e5c109307ad8c highlighted a race condition when sending a mail via JMAP.
> Cause: the mail is processedn, and marked for outgoing delivery.
> It is reenqueued, and appended to outgoing queue.
> The post dequeue decorator, moving JMAP mails from outbox to sent is applied to times, leading eventualy to invalid results and race condition.
> Proposed fix: only apply post dequeue decorator to "spool"



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