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

Observation data mixup due to observation token re-use #78

Open GiedriusM opened 6 years ago

GiedriusM commented 6 years ago

Restserver may send invalid resource value when observations are deleted and added.

Bugflow: C - LwM2m client; S - LwM2M server (wakaama); R - REST client;

CS: Registration RS: Subscribe A CS: Update SC: Observe A [token = 0] CS: Content A [0] --> SR: Notification Resource A .... RS: Unsubscribe A (observe list empty) RS: Subscribe B (observation list id re-use) CS: Content A [0] --> SR: Notification Resource B!!!!!!!!!!!!!!!!!! (client sent content for resource A) .... CS: Update SC: Observe B [0] CS: Content B [0] --> SR: Notification Resource B (back to normal once update is received)