[
https://issues.apache.org/jira/browse/JAMES-3677?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Benoit Tellier closed JAMES-3677.
---------------------------------
Resolution: Fixed
Thanks to Tran Van Tung for spotting this issue and fixing it!
> BackReference should allow pointing to specific array elements
> --------------------------------------------------------------
>
> Key: JAMES-3677
> URL: https://issues.apache.org/jira/browse/JAMES-3677
> Project: James Server
> Issue Type: Sub-task
> Components: JMAP
> Affects Versions: 3.6.0
> Reporter: Benoit Tellier
> Assignee: Antoine Duprat
> Priority: Major
> Fix For: 3.7.0
>
> Time Spent: 2h 50m
> Remaining Estimate: 0h
>
> Today James support JMAP BackReferences to allow compose JMAP method calls
> together within a single JMAP request in order to reduce roundtrips, a la
> graphQL.
> https://jmap.io/spec-core.html#references-to-previous-method-results specify
> the mechanism: a JSON pointer allow extracting the JSON value to supply from
> a previously executed method response. It clearly state that
> https://datatracker.ietf.org/doc/html/rfc6901 should be respected. RFC-6901
> allow pointing toward dedicated array items:
> {code:java}
> Given
> {
> "foo": ["bar", "baz"],
> ...
> }
> The following JSON strings evaluate to the accompanying values:
>
> ...
> "/foo/0" "bar"
> ...
> {code}
> However this is not currently supported by James.
> Confusion arrise from the fact that JMAP relies on JSON pointers for updates
> too and forbids to do partial updates. However no such limitation is stated
> in the context of back references.
> Thus, in a spec compliance effort, we shall allow pointing back-references to
> items in arrays.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]