Skip to content
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

invalid critical option in query 0.03 Put: 3 #70

Open
Spongman opened this issue Oct 25, 2023 · 1 comment
Open

invalid critical option in query 0.03 Put: 3 #70

Spongman opened this issue Oct 25, 2023 · 1 comment

Comments

@Spongman
Copy link

I'm seeing this error when my server sends a Uri-Host option in a PUT query to a connected Anjay client.

2023-10-25 17:37:56.465075 DEBUG [coap] [./Anjay/deps/avs_coap/src/avs_coap_ctx.c:464]: warning: invalid critical option in query 0.03 Put: 3

I see no justification for this error in rfc7252.

@kFYatek
Copy link
Contributor

kFYatek commented Oct 26, 2023

RFC 7252, section 5.4.1, says:

Unrecognized options of class "critical" that occur in a Confirmable request MUST cause the return of a 4.02 (Bad Option) response.

Uri-Host is a critical option, as you can see in Table 4 in the said RFC.

The only critical options recognized by Anjay are Uri-Path, Uri-Query, Accept, and, if block transfer support is enabled at compile time, Block1 and Block2. There is no code that would handle Uri-Host in any way, so the library must reject requests that contain it, as per the RFC.

May I ask what is the server that sends the Uri-Host option? Is there any specific reason for it to do so?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants