-
Nathan Heldt-Sheller authored
The CTT was posting an Update to /acl2 that included only rowneruuid in the payload. The IUT was rejecting because it could not determine that the payload was /acl2 (vs. /acl v1). This is wrong behavior by IUT because such a payload is actually valid /acl2 and/or /acl v1 payload. This patch changes the logic so that it only rejects an Update based on version if it can determine it is an incompatible version - in this case, v1 - and accepts it otherwise. A similar problem exists in the /cred Update handler, which (in a particular state) treats a payload containing just rowneruuid as a failed attempt to Update the Owner credential. This patch changes that logic too, to no longer treat a "NO_SECURITY_MODE" credType as an Owner credential. Change-Id: Ica9bde112cb87bd6ad6ee014cf7526928545d786 Signed-off-by:
Nathan Heldt-Sheller <nathan.heldt-sheller@intel.com> Reviewed-on: https://gerrit.iotivity.org/gerrit/20779Tested-by:
jenkins-iotivity <jenkins@iotivity.org> Reviewed-by:
Dan Mihai <Daniel.Mihai@microsoft.com> Reviewed-by:
Randeep Singh <randeep.s@samsung.com> Reviewed-by:
Mushfiqul Islam <i.mushfiq@samsung.com> Reviewed-by:
Kevin Kane <kkane@microsoft.com>
f65b2f7b