You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@james.apache.org by bt...@apache.org on 2020/11/04 02:16:56 UTC

[james-project] 04/09: JAMES-3409 Delete MailboxPathV2 content based on MailboxPathV2

This is an automated email from the ASF dual-hosted git repository.

btellier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git

commit bfd12be794d7ed7b5839816601c0d13889203b4f
Author: Benoit Tellier <bt...@linagora.com>
AuthorDate: Tue Nov 3 08:37:39 2020 +0700

    JAMES-3409 Delete MailboxPathV2 content based on MailboxPathV2
---
 .../james/mailbox/cassandra/mail/migration/MailboxPathV3Migration.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mailbox/cassandra/src/main/java/org/apache/james/mailbox/cassandra/mail/migration/MailboxPathV3Migration.java b/mailbox/cassandra/src/main/java/org/apache/james/mailbox/cassandra/mail/migration/MailboxPathV3Migration.java
index afe5e63..a2b9e41 100644
--- a/mailbox/cassandra/src/main/java/org/apache/james/mailbox/cassandra/mail/migration/MailboxPathV3Migration.java
+++ b/mailbox/cassandra/src/main/java/org/apache/james/mailbox/cassandra/mail/migration/MailboxPathV3Migration.java
@@ -115,7 +115,7 @@ public class MailboxPathV3Migration implements Migration {
     private Mono<Void> migrate(CassandraIdAndPath idAndPath) {
         return mailboxDAO.retrieveMailbox(idAndPath.getCassandraId())
             .flatMap(mailbox -> daoV3.save(mailbox)
-                .then(daoV2.delete(mailbox.generateAssociatedPath())))
+                .then(daoV2.delete(idAndPath.getMailboxPath())))
             .onErrorResume(error -> handleErrorMigrate(idAndPath, error))
             .then();
     }


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