Seke Kazuru created JAMES-4245:
----------------------------------

             Summary: JMAP Email/query rejects a negative position
                 Key: JAMES-4245
                 URL: https://issues.apache.org/jira/browse/JAMES-4245
             Project: James Server
          Issue Type: Bug
          Components: JMAP
            Reporter: Seke Kazuru
            Assignee: Antoine Duprat


Hi,

RFC 8620 section 5.5: "If a negative value is given, it is an offset from the 
end of the list. Specifically, the negative value MUST be added to the total 
number of results given the filter, and if still negative, it's clamped to "0"."

{\{Email/query}} with \{{"position": -5}} returns \{{invalidArguments}} 
("Negative position are not supported yet. -5 was provided."). Expected: 
results counted from the end (an empty list and position 0 for an empty 
mailbox).

James 3.9.1, memory image (\{{apache/james:memory-3.9.1}}), default 
configuration, one user. JMAP requests POSTed to \{{/jmap}} with core and mail 
capabilities.

Thanks.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to