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

Benoit Tellier commented on MAILBOX-393:
----------------------------------------

https://github.com/linagora/james-project/pull/2963 fixed the issue

> MailboxManager::deleteMailbox by mailboxId
> ------------------------------------------
>
>                 Key: MAILBOX-393
>                 URL: https://issues.apache.org/jira/browse/MAILBOX-393
>             Project: James Mailbox
>          Issue Type: Improvement
>          Components: api
>            Reporter: Benoit Tellier
>            Priority: Major
>
> Currently we can only delete a mailbox by it's mailboxPath.
> MailboxPath is mutable as a mailbox can be renamed.
> Mutable identifiers are bad, and thus race conditions can arise upon mailbox 
> deletion:
> {code:java}
> Given a mailboxId
> I read the corresponding mailboxPath
> and a concurrent session renames the mailbox (switch name) after my read
> When I delete the mailbox using the previously read path
> Then I bloew up the wrong mailbox (!!!)
> {code}



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

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

Reply via email to