Seke Kazuru created JAMES-4243:
----------------------------------
Summary: JMAP /set: an unknown id gives invalidArguments instead
of notFound
Key: JAMES-4243
URL: https://issues.apache.org/jira/browse/JAMES-4243
Project: James Server
Issue Type: Bug
Components: JMAP
Reporter: Seke Kazuru
Assignee: Antoine Duprat
RFC 8620 section 5.3: "If an id given cannot be found, the update or destroy
MUST be rejected with a \{{notFound}} set error."
{\{Mailbox/set}} with \{{update: {"pdNoSuchId": {"name": "x"}}}} and
\{{destroy: ["pdNoSuchId2"]}} returns:
{code}
"notUpdated": \{"pdNoSuchId": {"type": "invalidArguments", "description": "For
input string: \"pdNoSuchId\""}},
"notDestroyed": \{"pdNoSuchId2": {"type": "invalidArguments", "description":
"pdNoSuchId2 is not a mailboxId..."}}
{code}
The id is parsed as a number before the lookup, so any id James did not issue
gives \{{invalidArguments}}. Expected: \{{notFound}} for both.
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]