8devices / wakaama

Eclipse Wakaama (formerly liblwm2m) is an implementation of the Open Mobile Alliance's LightWeight M2M protocol (LWM2M).
0 stars 4 forks source link

Not existing observation deletion should return 404 #30

Closed Lycopersicum closed 6 years ago

Lycopersicum commented 6 years ago

As title says, not existing observation deletion should return 404, however currently restserver returns 500, problem occurs in wakaama/examples/rest-server/rest-subscriptions.c:

...

if (observe_context == NULL)
{
    // XXX: This should return 404, but for easier rest lock management go to error
    // ulfius_set_empty_body_response(resp, 404);

    goto exit;
}

...