[
https://issues.apache.org/jira/browse/JAMES-4243?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18152021#comment-18152021
]
Benoit Tellier commented on JAMES-4243:
---------------------------------------
Hello,
That's a valid catch. Thanks a lot for reporting it.
Do you want to open a pull request to fix this?
It would be much appreciated!
Cheers,
Benoit
> 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
> Priority: Major
>
> 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]