[Easy Setup] Check required properties for UPDATE 93/27793/3
authorAbhishek Pandey <abhi.siso@samsung.com>
Mon, 24 Dec 2018 10:05:14 +0000 (15:35 +0530)
committerNathan Heldt-Sheller <nathan.heldt-sheller@intel.com>
Mon, 11 Feb 2019 18:35:03 +0000 (18:35 +0000)
commit666d1d5ce3541c43669d878ccae82d567a687a88
tree8b54573b4e153103e019ee1fec5ef01adc033e5b
parent010440ea172c7e420c4e0a4d7eaca67638488c5d
[Easy Setup] Check required properties for UPDATE

[IOT-3252]
https://jira.iotivity.org/browse/IOT-3252

Per the WiFiConf Schema, for an UPDATE request:
 "required":["tnn", "wat", "wet"]

This means that all three of these Properties must be in every
UPDATE request. If they are not there, the Device is supposed
to reject the request with a 4.xx error. However, IoTivity
responds with a 2.04 Changed response instead currently.

This patch fixes above issue by checking the POST request
for required properties (tnn, wat, wet). If any of these
are not included in POST request, it will be rejected.

Change-Id: I00f02c93cd273a02706c85c5d236584d45d6ca77
Signed-off-by: Abhishek Pandey <abhi.siso@samsung.com>
service/easy-setup/enrollee/src/resourcehandler.c