Skip to content

[FIX] StoreMailboxManager:renameSubMailboxes should change namespace#3069

Merged
Arsnael merged 1 commit into
apache:masterfrom
quantranhong1999:update-james-sha1-22-06-2026
Jun 22, 2026
Merged

[FIX] StoreMailboxManager:renameSubMailboxes should change namespace#3069
Arsnael merged 1 commit into
apache:masterfrom
quantranhong1999:update-james-sha1-22-06-2026

Conversation

@quantranhong1999

Copy link
Copy Markdown
Member

When renaming a mailbox across namespaces, StoreMailboxManager preloads the mailbox and its children then renames them through renameSubMailboxes.

That helper updated the mailbox name and user but not the namespace, causing id-based renames across namespaces to keep the old namespace in storage.

Update the namespace during rename and add a regression test covering both the renamed mailbox and one child mailbox.

When renaming a mailbox across namespaces, StoreMailboxManager preloads the
mailbox and its children then renames them through renameSubMailboxes.

That helper updated the mailbox name and user but not the namespace, causing
id-based renames across namespaces to keep the old namespace in storage.

Update the namespace during rename and add a regression test covering both the
renamed mailbox and one child mailbox.

@chibenwa chibenwa left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch!

@Arsnael Arsnael merged commit 98adde3 into apache:master Jun 22, 2026
1 check passed
@chibenwa

Copy link
Copy Markdown
Contributor

Can we backport this is 3.9.x onto #3067

Thanks ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants