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 2022/10/15 06:52:00 UTC

[jira] [Closed] (JAMES-3835) EmailSubmission/set response is wrong for

     [ https://issues.apache.org/jira/browse/JAMES-3835?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benoit Tellier closed JAMES-3835.
---------------------------------
    Fix Version/s: 3.8.0
       Resolution: Fixed

Merge request addresses this.

Thanks again for the report.

> EmailSubmission/set response is wrong for 
> ------------------------------------------
>
>                 Key: JAMES-3835
>                 URL: https://issues.apache.org/jira/browse/JAMES-3835
>             Project: James Server
>          Issue Type: Bug
>          Components: JMAP
>    Affects Versions: 3.7.0
>            Reporter: David Schury
>            Assignee: Antoine Duprat
>            Priority: Major
>             Fix For: 3.8.0
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> After successfully invoking EmailSubmission/set the server responds with an invalid {{{}EmailSubmissionSetResponse{}}}:
> {code:json}
> {
>   "accountId": "ue411d190",
>   "oldState": "012421s6-8nrq-4ps4-n0p4-9330r951ns21",
>   "newState": "355421f6-8aed-4cf4-a0c4-7377e951af36",
>   "created": {
>     "k1490": "ES-3bab7f9a-623e-4acf-99a5-2e67facb02a0"
>   }
> }{code}
> According to [RFC 8621 Section 5.3|https://www.rfc-editor.org/rfc/rfc8620#section-5.3] and [RFC 8621 Section 7.5.1|https://www.rfc-editor.org/rfc/rfc8621.html#section-7.5.1] the created argument is wrong since the {{EmailSubmissionCreationResponse}} object is not serialized as an JSON object but simply as a string.
> {quote}A map of the creation id to an object containing any properties of the created Foo object that were not sent by the client. This includes all server-set properties (such as the "id" in most object types) and any properties that were omitted by the client and thus set to a default by the server.
> {quote}
> Expected response:
> {code:json}
> {
>   "accountId": "ue411d190",
>   "oldState": "012421s6-8nrq-4ps4-n0p4-9330r951ns21",
>   "newState": "355421f6-8aed-4cf4-a0c4-7377e951af36",
>   "created": {
>     "k1490": {
>       "id": "ES-3bab7f9a-623e-4acf-99a5-2e67facb02a0"
>     }
>   }
> }{code}



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

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