OpenMobileAlliance / OMA_LwM2M_for_Developers

OMA LightweightM2M public resources.
http://openmobilealliance.github.io/OMA_LwM2M_for_Developers/
Other
238 stars 52 forks source link

TS 8.2.3 Registration Interface : POST or PUT for the 'Update' CoAP Method? #96

Closed jaeeunchoi closed 8 years ago

jaeeunchoi commented 8 years ago

About the CoAP Method of 'Update' in the TS section 8.2.3, the current TS doc (2015 DEC) is written as 'POST' ( "Registration update is performed by sending a CoAP PUT... "). But the older version of TS ( eg. 2014.NOV) is written as 'PUT'. And '6.1.2.2 LightweightM2M-1.0-int-102 – Registration Update' in the current test specification ( OMA-ETS-LightweightM2M-V1_0-20151208-C) also uses 'PUT'.

Which one is the correct one? PUT or POST?

boaks commented 8 years ago

POST.

See also #85.

jpradocueva commented 8 years ago

In the latest TS it is a POST. Thanks for pointed out the error, it appears that the ETS OMA-ETS-LightweightM2M-V1_0-20151208-C has not been updated accordingly. I will pass it on to the working group and a change request should be created.

Also, it seems that test case: 6.1.2.5 LightweightM2M-1.0-int-105 – Initial Registration to Bootstrap Server of document: ETS OMA-ETS-LightweightM2M-V1_0-20151208-C is using a COAP PUT. I will report this also

jaeeunchoi commented 8 years ago

I see. Currently the 'POST' is the right one.

But I still wonder which method is used by the devices/servers in the real fields now.

Does anyone know how this 'update' test was done in the last TestFest(January,2016) ? The TestFest result shows that all the participants passed the test case 'LightweightM2M-1.0-int-102 : Registration Update'. They use 'POST' or 'PUT' ?

jvermillard commented 8 years ago

Eclipse Leshan hand both PUT and POST registration update for compatibility issues, see code at https://github.com/eclipse/leshan/blob/master/leshan-server-cf/src/main/java/org/eclipse/leshan/server/californium/impl/RegisterResource.java#L304

ThGarnier commented 8 years ago

Hello! the ETS is wrong. In fact the LWM2M TS 1.0 has been changed beginning of 2015 regarding the update registration which was initially mapped on a 'PUT'. So since that date (Fev 2015) update registration is mapped on 'POST', the ETS (int 102) has not been updated yet regarding that point : it will be done ASAP . Great eyes, jaeeunchoi :-) !!! many thanks => As Julian said there is no issue in leshan, this issue will be turned to "To-be-closed" as soon as the ETS will be fixed on that point

jaeeunchoi commented 8 years ago

On the descriptions of 'Registration Update Trigger', 'PUT' should be changed to 'POST', I think.

jpradocueva commented 8 years ago

@ThGarnier I suggest to audit all the Registration & Update test cases in the ETS.