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

Deletion of Server object should be allowed during bootstrapping #80

Closed
ghseb opened this issue Dec 16, 2020 · 3 comments
Closed

Deletion of Server object should be allowed during bootstrapping #80

ghseb opened this issue Dec 16, 2020 · 3 comments

Comments

@ghseb
Copy link

ghseb commented Dec 16, 2020

Hello,

in http://www.openmobilealliance.org/release/LightweightM2M/V1_0_2-20180209-A/OMA-TS-LightweightM2M-V1_0_2-20180209-A.pdf bootstrap delete is specified as:

5.2.7.5 BOOTSTRAP DELETE
The Delete operation targets one or several Object Instances and can be sent multiple times.
Only in Bootstrap Interface, the Delete operation MAY target any Instance or all Instances of any Object including the
Security Object (ID:0), supported by the LwM2M Client. The two exceptions are the LwM2M Bootstrap-Server Account and
the single Instance of the Mandatory Device Object (ID:3) which are not affected by any Delete operation.
When the Delete operation is used without any parameter (i.e. without Object ID parameter), all Instances of all Objects in
the LwM2M Client MUST be removed (except for the two cases mentioned above); this functionality could be used for
initialization purpose before LwM2M Bootstrap-Server sends Write operation(s) to the LwM2M Client.

with LwM2M Bootstrap-Server Account beieng specified as:

3.2 Definitions
LwM2M Bootstrap-Server Account LwM2M Security Object Instance with Bootstrap-Server Resource true
LwM2M Server Account LwM2M Security Object Instance with Bootstrap-Server Resource false and associated LwM2M Server
Object Instance

In contrast to the specification bootstrap delete on the e.g. object /1 (Server) is effectively prohibited by https://github.com/PelionIoT/mbed-cloud-client/blob/master/mbed-client/source/m2mnsdlinterface.cpp#L2495-L2508

Best regards,
Sebastian

@teetak01
Copy link
Contributor

Fix for this is planned in future version.

@teetak01
Copy link
Contributor

Should be fixed now with 4.11.0 release.

@ghseb
Copy link
Author

ghseb commented Sep 22, 2021

Thanks!

@ghseb ghseb closed this as completed Sep 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants