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 "Benoit Tellier (Jira)" <se...@james.apache.org> on 2021/04/02 07:50:00 UTC

[jira] [Commented] (JAMES-3530) JMAP Mailbox/set is unable to set role

    [ https://issues.apache.org/jira/browse/JAMES-3530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17313674#comment-17313674 ] 

Benoit Tellier commented on JAMES-3530:
---------------------------------------

Hello Daniel.

This is a known limitation: the roles are currently backed by the mailbox name.

We would need to back it up with mailbox annotations in order to support roles.

> JMAP Mailbox/set is unable to set role
> --------------------------------------
>
>                 Key: JAMES-3530
>                 URL: https://issues.apache.org/jira/browse/JAMES-3530
>             Project: James Server
>          Issue Type: Bug
>          Components: JMAP
>    Affects Versions: master
>            Reporter: Daniel Gultsch
>            Assignee: Antoine Duprat
>            Priority: Major
>
> An attempt to create a new mailbox with the role 'archive' fails with "Some server-set properties were specified".
>  
> Role is not marked as a server-set property in the JMAP spec
> {code:java}
> {
>   "methodCalls": [
>     [
>       "Mailbox/set",
>       {
>         "accountId": "cf2e474f942d8ea3192028d2e37d5b08b3ddd36fb986d2ad6a19d66277a981c4",
>         "create": {
>           "mb-archive": {
>             "name": "Archive",
>             "role": "archive"
>           }
>         },
>         "ifInState": "de6ce5c0-931f-11eb-b57c-1b93c9e59cb7"
>       },
>       "0"
>     ]
>   ],
>   "using": [
>     "urn:ietf:params:jmap:core",
>     "urn:ietf:params:jmap:mail"
>   ]
> }
> {code}
>  
> Response is:
> {code:java}
> {
>   "sessionState": "2c9f1b12-b35a-43e6-9af2-0106fb53a943",
>   "methodResponses": [
>     [
>       "Mailbox/set",
>       {
>         "accountId": "cf2e474f942d8ea3192028d2e37d5b08b3ddd36fb986d2ad6a19d66277a981c4",
>         "oldState": "de6ce5c0-931f-11eb-b57c-1b93c9e59cb7",
>         "newState": "de6ce5c0-931f-11eb-b57c-1b93c9e59cb7",
>         "notCreated": {
>           "mb-archive": {
>             "type": "invalidArguments",
>             "description": "Some server-set properties were specified",
>             "properties": [
>               "role"
>             ]
>           }
>         }
>       },
>       "0"
>     ]
> }
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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