Benoit Tellier created JAMES-4196:
-------------------------------------

             Summary: TeamMailbox: JMAP support for creating mailbox
                 Key: JAMES-4196
                 URL: https://issues.apache.org/jira/browse/JAMES-4196
             Project: James Server
          Issue Type: Improvement
          Components: JMAP
            Reporter: Benoit Tellier
            Assignee: Antoine Duprat


User has rights to create mailbox in DB


{code:java}
james@cqlsh:linagora_james> select * from aclv2 WHERE id = 
16139b52-2cc1-11f1-b8d0-851412af6d00;

 id                                   | key                             | rights
--------------------------------------+---------------------------------+---------------------------------------------------------
 16139b52-2cc1-11f1-b8d0-851412af6d00 |           [email protected] |      
{'a', 'e', 'i', 'k', 'l', 'p', 'r', 's', 't', 'w'}
 16139b52-2cc1-11f1-b8d0-851412af6d00 |         [email protected] |       
    {'e', 'i', 'k', 'l', 'p', 'r', 's', 't', 'w'}
 16139b52-2cc1-11f1-b8d0-851412af6d00 |           [email protected] | {'a', 
'e', 'i', 'k', 'l', 'p', 'r', 's', 't', 'w', 'x'}
 16139b52-2cc1-11f1-b8d0-851412af6d00 |               [email protected] |       
    {'e', 'i', 'k', 'l', 'p', 'r', 's', 't', 'w'}
 16139b52-2cc1-11f1-b8d0-851412af6d00 | [email protected] | {'a', 
'e', 'i', 'k', 'l', 'p', 'r', 's', 't', 'w', 'x'}
{code}

Yet the JMAP layer do not allow to set this right (and do not advertize it)

{code:java}
{
                        "id": "16168180-2cc1-11f1-b8d0-851412af6d00",
                        "name": "INBOX",
                        "parentId": "16139b52-2cc1-11f1-b8d0-851412af6d00",
                        "sortOrder": 1000,
                        "totalEmails": 0,
                        "unreadEmails": 0,
                        "totalThreads": 0,
                        "unreadThreads": 0,
                        "myRights": {
                            "mayReadItems": true,
                            "mayAddItems": true,
                            "mayRemoveItems": true,
                            "maySetSeen": true,
                            "maySetKeywords": true,
                            "mayCreateChild": false,
                            "mayRename": false,
                            "mayDelete": false,
                            "maySubmit": false
                        },
                        "isSubscribed": true,
                        "namespace": "TeamMailbox[[email protected]]",
                        "rights": {
                            "[email protected]": [
                                "a",
                                "e",
                                "i",
                                "l",
                                "p",
                                "r",
                                "s",
                                "t",
                                "w"
                            ]
                        }
                    }
{code}




--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to