[IOT-2642] DELETE /roles succeeds if no entry 13/22113/2
authorNathan Heldt-Sheller <nathan.heldt-sheller@intel.com>
Thu, 24 Aug 2017 16:35:18 +0000 (09:35 -0700)
committerRandeep Singh <randeep.s@samsung.com>
Tue, 29 Aug 2017 05:22:03 +0000 (05:22 +0000)
commitc49c9077729008e1e098838a07859414cb5fe013
tree47b95ae2f5cf15f26151443b8e55b817f4f9c3ec
parenta54db53f54b443af730573c19a5f37c132058e90
[IOT-2642] DELETE /roles succeeds if no entry

The DELETE request to /roles is meant to remove all /roles entries
corresponding to the current peer.  In the case of no /roles entries
existing, IoTivity was returning error, but should return "deleted"
instead.

Change-Id: Ib98c64822fe77eb7457bd734b168f1b26efd0d61
Signed-off-by: Nathan Heldt-Sheller <nathan.heldt-sheller@intel.com>
Signed-off-by: Dan Mihai <Daniel.Mihai@microsoft.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/22113
Reviewed-by: Alex Kelley <alexke@microsoft.com>
Reviewed-by: Ibrahim Esmat <iesmat@microsoft.com>
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
resource/csdk/security/src/rolesresource.c