From 74fdedf9b8a1e7b70e936cabedf0059d2c40234d Mon Sep 17 00:00:00 2001 From: Alvaro Vega Date: Tue, 4 May 2021 17:57:03 +0200 Subject: [PATCH 1/2] Update domain.js --- lib/services/common/domain.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/services/common/domain.js b/lib/services/common/domain.js index 464c5b699..cf74a5163 100644 --- a/lib/services/common/domain.js +++ b/lib/services/common/domain.js @@ -195,11 +195,11 @@ function finishSouthboundTransaction(callback) { * @return {Object} New context containing service information. */ function fillService(context, data) { - if (data.service) { + if (data && data.service) { context.srv = data.service; } - if (data.subservice) { + if (data && data.subservice) { context.subsrv = data.subservice; } From 5c49c75bb9b6e73cae94bc9d08dbe0bc6e38261f Mon Sep 17 00:00:00 2001 From: Alvaro Vega Date: Wed, 5 May 2021 08:06:52 +0200 Subject: [PATCH 2/2] Update CHANGES_NEXT_RELEASE --- CHANGES_NEXT_RELEASE | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGES_NEXT_RELEASE b/CHANGES_NEXT_RELEASE index e972ed31f..5fc05edcb 100644 --- a/CHANGES_NEXT_RELEASE +++ b/CHANGES_NEXT_RELEASE @@ -1,3 +1,4 @@ +- Fix: check access to data in fillService facility - Fix: ensure service of groups, device and commands is stored in mongo in lowercase (#1023) - Add: add getTypeSilently for device group and use in device registration to avoid false mongo alarm - Fix: group command is not provisioned in device when entity_type is different (#1011)