Benoit Tellier created MAILBOX-393:
--------------------------------------

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


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