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

Server Demo: writing "" empty strings (e.g. cancel firmware update) #119

Closed
boaks opened this issue Apr 18, 2016 · 1 comment
Closed

Server Demo: writing "" empty strings (e.g. cancel firmware update) #119

boaks opened this issue Apr 18, 2016 · 1 comment
Labels
bug Dysfunctionnal behavior

Comments

@boaks
Copy link

boaks commented Apr 18, 2016

Writing an empty string ("") to /5/0/1 to cancel a firmware update is suppressed.
No request is sent.
According the LWM2M TS, appendix E.6,

If writing an empty string to Package Resource is done or writing an empty string to Package URI is done, the state changes to Idle.

it seesm to be considered as "valid operation" (even if there may be a discussion on what "mandatory" means :-) )

As far as I understand, the write is suppressed in
"resource-directives.js", line 152,

if(value) {

changing that to

if(value || "" == value) {

would allow to write an empty string.

@sbernard31 sbernard31 added the bug Dysfunctionnal behavior label Apr 19, 2016
@sbernard31
Copy link
Contributor

Fix in master (commit 022c8f4)
Thx again @boaks

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

No branches or pull requests

2 participants