David Schury created JAMES-3835: ----------------------------------- Summary: 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
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-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org