james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benoit Tellier (Jira)" <server-...@james.apache.org>
Subject [jira] [Created] (JAMES-3589) Matched mail resume processing from root
Date Fri, 21 May 2021 03:15:00 GMT
Benoit Tellier created JAMES-3589:

             Summary: Matched mail resume processing from root
                 Key: JAMES-3589
                 URL: https://issues.apache.org/jira/browse/JAMES-3589
             Project: James Server
          Issue Type: Bug
          Components: MailStore &amp; MailRepository
    Affects Versions: 3.5.0, 3.6.0
            Reporter: Benoit Tellier
             Fix For: 3.7.0, 3.6.1

h3. What

One of my customer reported me that a side effect was done two time upon MailetContainer execution.

What was not my surprise when writing integration tests counting executions, that they were

Tracking down the bug, I encountered that `MailImpl.duplicate` do not preserve state, hence
processing resumes from ROOT processor (leaving the exchange).

h3. The fix

MatcherSplitter should preserve the state of the matched mail.

h3. The complications

Preserving several mails on the same exchange, we should not shut the exchange down before
processing is finished. Doing so would result in following  I did set up reference counting
for this.

This message was sent by Atlassian Jira

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

View raw message