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 2020/04/13 02:58:00 UTC
[jira] [Closed] (JAMES-2888) Implement echo method
[ https://issues.apache.org/jira/browse/JAMES-2888?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benoit Tellier closed JAMES-2888.
---------------------------------
Resolution: Fixed
https://github.com/linagora/james-project/pull/3232 is fixing this
> Implement echo method
> ---------------------
>
> Key: JAMES-2888
> URL: https://issues.apache.org/jira/browse/JAMES-2888
> Project: James Server
> Issue Type: Sub-task
> Components: JMAP
> Reporter: Benoit Tellier
> Assignee: Antoine Duprat
> Priority: Major
>
> https://jmap.io/spec-core.html#the-coreecho-method
> In order to test that our infrastructure is correct for the new `jmap` package, you will need to implement a simple echo method that returns exactly the same arguments as it is given.
> Request:
> {code:java}
> {
> "using": [ "urn:ietf:params:jmap:core"],
> "methodCalls": [
> [ "Core/echo", {
> "hello": true,
> "high": 5
> }, "b3ff" ]
> ]
> }
> {code}
> Response:
> {code:java}
> {
> "methodResponses": [
> [ "Core/echo", {
> "hello": true,
> "high": 5
> }, "b3ff" ]
> ],
> "sessionState": "75128aab4b1b"
> }
> {code}
> *DoD*: serving the echo method and add memory integration tests.
> We need to be careful also about the way we parse JSON for the echo method to not have potential attacks, and can write some tests about it as well (have a look at https://github.com/nst/JSONTestSuite for example).
> You can investigate as well if it's possible to get a lazy json parsing with `JsonTransformers` of the `play-json` library.
--
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