Open dnav opened 5 months ago
Thx for reporting :pray:.
For none
content format line, this is the expected behavior for now. We will wait for OMA answer to https://github.com/OpenMobileAlliance/OMA_LwM2M_for_Developers/issues/579 before to change anything.
For Read on Object Instance
, I need to investigate as at first sight there is a kind on inconsistency.
The Object Instance inconsistent behavior is fixed by #1624.
I let this issue open waiting for the none
content format case answer.
I integrated #1624 in master
. It will be available in sandbox very soon and will be part of next release 2.0.0-M15.
Issue was closed automatically I reopen it because :
I let this issue open waiting for the none content format case answer.
While looking into https://github.com/eclipse-leshan/leshan/issues/1633, I also checked what happens when an empty payload is sent in a Read Response/Observe Response/Notify.
This is what I came across (with Leshan 2.0.0-M15):
Version(s)
2.0.0-SNAPSHOT (leshan.eclipseprojects.io)
Which components
leshan.eclipseprojects.io
Tested With
custom CoAP server
What happened
When performing a Read operation returning an empty response, Leshan returns an "failed to decode" error in some case.
I tested a Read on an empty Object (no Object Instance), an empty Object Instance (no readable Resource, object ID 7), and an empty multiple Resource (no Resource Instance).
The response is always a 2.05 content with or witout a content-format option, and with or without a payload.
How to reproduce
No response
Relevant Output
No response