Benoit Tellier created JAMES-3513:
-------------------------------------
Summary: Wrong UID dispatched on the EventBus for
StoreMessageIdManager::setInMailboxes
Key: JAMES-3513
URL: https://issues.apache.org/jira/browse/JAMES-3513
Project: James Server
Issue Type: Bug
Components: mailbox
Affects Versions: master
Reporter: Benoit Tellier
Fix For: 3.6.0
Looking at the (internal) linagora bugtracker for the James server I found:
{code:java}
Given msg1 in mbx1 with uid 12 and in mbx2 with uid 58
When I set it in mbx3
Then two deletion events are dispatched, one in mbx1 with uid 12 ok, one in
mbx2 and uid 12.
{code}
Which can lead to random message deletion in the search index (for instance)
when a message is removed from more than one mailbox in JMAP.
I then took the few minutes to add a test case and fix the logic.
I should definitely audit our internal bug tracker and open relevant bugs here
too, so that people can help and fix them.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]