-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug > JMAP/get > Return incorrect result when using invalid header parse form #4012
Comments
If you haven't implemented this requirement yet, please update the documentation |
I would say:
The header field is an all. If the syntax of the field is incorrect, it is an error. Null is only returned if you fail to parse correctly the value of a header field. For example: "header:from:asAddresses": "rcordier@linagora.com" => valid (valid header filed and valid value) "header:from:asAddresses": "blabla" => should return null (valid header field but can't parse blabla as an email address) Regarding documentation there is a task for this already planned: #3980 |
I (slightly) disagree. I would say:
"header:from:asAddresses": "blabla" => should return null (valid header field but can't parse blabla as an email address) => :+1: |
Was not sure about point 3 but... I guess we can have custom headers too yes |
the point 3 means the header name is non-existing |
So I summarize as below: the header filed parsed form = header:header-field-name:parse-form
|
Actual Result
When using an invalid parse form of a header, it returns null instead of invalidArguments


Expected Result
Please confirm this expected result:
Example:
If you haven't implemented this requirement yet, please update the documentation
https://github.com/linagora/james-project/blob/master/server/protocols/jmap-rfc-8621/doc/specs/spec/mail/message.mdown
The text was updated successfully, but these errors were encountered: