You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by rc...@apache.org on 2020/08/21 02:26:50 UTC

[james-project] 02/14: JAMES-3361 ImapHostSystem should use owner's session to set rights for mailbox

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

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

commit f5d397ca40518df5b6b39443f60a34653bc4b423
Author: LanKhuat <dl...@linagora.com>
AuthorDate: Thu Aug 20 10:36:39 2020 +0700

    JAMES-3361 ImapHostSystem should use owner's session to set rights for mailbox
---
 .../src/main/java/org/apache/james/mpt/host/JamesImapHostSystem.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mpt/impl/imap-mailbox/core/src/main/java/org/apache/james/mpt/host/JamesImapHostSystem.java b/mpt/impl/imap-mailbox/core/src/main/java/org/apache/james/mpt/host/JamesImapHostSystem.java
index b15d28e..cd1e0d7 100644
--- a/mpt/impl/imap-mailbox/core/src/main/java/org/apache/james/mpt/host/JamesImapHostSystem.java
+++ b/mpt/impl/imap-mailbox/core/src/main/java/org/apache/james/mpt/host/JamesImapHostSystem.java
@@ -118,7 +118,7 @@ public abstract class JamesImapHostSystem implements ImapHostSystem, GrantRights
                 .forUser(username)
                 .rights(rights)
                 .asAddition()),
-            mailboxManager.createSystemSession(username));
+            mailboxSession);
         mailboxManager.logout(mailboxSession);
         mailboxManager.endProcessingRequest(mailboxSession);
     }


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