-
Notifications
You must be signed in to change notification settings - Fork 408
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
Client registration sends ct with invalid syntax #1020
Comments
@weinholt thx for reporting this 🙏 I will add quote for ct attribute very soon.
Probably true. For now, nobody begin to work on it and I don''t plan to do it at short term. I'm not sure which kind of rules should be handle in Link class, I mean which level of abstraction. |
The bug is also at server side as Leshan does not parse correctly the
|
#1021 should fix the issue. |
I created a dedicated issue about having a less permissive parser for CoRE link format : #1022. |
I tried the Leshan demo client towards a non-Leshan server and noticed that the client uses invalid syntax in the Register operation payload:
The syntax for
ct
is given in RFC 7252 (CoAP) as follows:Even in the absence of RFC 7252 there is an ABNF in RFC 6690 (CoRE link format) that does not allow space in unquoted values.
Leshan should quote the
ct
attribute if it contains spaces, like so:Leshan's own parser for this data is very forgiving (too forgiving, really) which is probably why this was not caught right away.
The text was updated successfully, but these errors were encountered: