Commit 8184345e authored by Dmitriy Zhuravlev's avatar Dmitriy Zhuravlev Committed by Uze Choi

[IOT-2036] Disable DOS checking

Workaround to pass Easy-Setup samples

Change-Id: Ib62f8de9f8a039ec9c6d1f7e6eb0a2f5544a905c
Signed-off-by: default avatarDmitriy Zhuravlev <d.zhuravlev@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/19863Reviewed-by: default avatarJihun Ha <jihun.ha@samsung.com>
Tested-by: default avatarjenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: default avatardongik Lee <dongik.lee@samsung.com>
Reviewed-by: default avatarUze Choi <uzchoi@samsung.com>
parent 798566c3
......@@ -2555,12 +2555,14 @@ static OCEntityHandlerResult HandleACLPostRequest(const OCEntityHandlerRequest *
OicSecDostype_t dos;
VERIFY_SUCCESS(TAG, OC_STACK_OK == GetDos(&dos), ERROR);
ehRet = OC_EH_OK;
if ((DOS_RESET == dos.state) ||
(DOS_RFNOP == dos.state))
{
OIC_LOG_V(WARNING, TAG, "%s /acl resource is read-only in RESET and RFNOP.", __func__);
ehRet = OC_EH_NOT_ACCEPTABLE;
goto exit;
// TODO fix infinite loop in mediator sample
// ehRet = OC_EH_NOT_ACCEPTABLE;
// goto exit;
}
else
{
......
......@@ -2095,14 +2095,17 @@ static OCEntityHandlerResult HandlePostRequest(OCEntityHandlerRequest * ehReques
OCStackResult res = OC_STACK_ERROR;
res = OC_STACK_OK;
VERIFY_SUCCESS(TAG, OC_STACK_OK == GetDos(&dos), ERROR);
if ((DOS_RESET == dos.state) ||
(DOS_RFPRO == dos.state) ||
(DOS_RFNOP == dos.state))
{
OIC_LOG_V(WARNING, TAG, "%s /cred resource is read-only in RESET, RFPRO and RFNOP.", __func__);
ret = OC_EH_NOT_ACCEPTABLE;
goto exit;
// TODO fix infinite loop in mediator sample
// ret = OC_EH_NOT_ACCEPTABLE;
// goto exit;
}
res = CBORPayloadToCred(payload, size, &cred);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment