eclipse-wakaama / wakaama

Eclipse Wakaama is a C implementation of the Open Mobile Alliance's LightWeight M2M protocol (LWM2M).
BSD 3-Clause "New" or "Revised" License
498 stars 374 forks source link

Fix invalid content type for registration #756

Closed LukasWoodtli closed 2 months ago

LukasWoodtli commented 7 months ago

LwM2M registration is only valid with core link format.

sonarcloud[bot] commented 3 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

mlasch commented 3 months ago

According to 1.1.1 specification section 6.2.1. Register Operation

the payload Media-Type of that registration message MUST be the CoRE Link Format (application/link-format) defined in [RFC6690]

as a result plain text must not be allowed.

LukasWoodtli commented 3 months ago

According to 1.1.1 specification section 6.2.1. Register Operation

the payload Media-Type of that registration message MUST be the CoRE Link Format (application/link-format) defined in [RFC6690]

as a result plain text must not be allowed.

Agree! Fixed Wakaama to be standard conformant.

mlasch commented 3 months ago

Nice, thanks!