From 16c8fd53cbaeb9537ce1aafc50bfc94fdb952c13 Mon Sep 17 00:00:00 2001 From: ManasaBM Date: Wed, 19 Jul 2023 08:03:44 +0200 Subject: [PATCH] /Resolve v1/redirect-topology-change-information should not conatin release -list in the ResponseBody Fixes #803 --- .../basicServices/BasicServicesService.js | 21 +++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/server/basicServices/basicServices/BasicServicesService.js b/server/basicServices/basicServices/BasicServicesService.js index 46919c44..4e69960a 100644 --- a/server/basicServices/basicServices/BasicServicesService.js +++ b/server/basicServices/basicServices/BasicServicesService.js @@ -932,13 +932,22 @@ exports.redirectTopologyChangeInformation = function (body, user, originator, xC } else if (layerProtocalName == LayerProtocol.layerProtocolNameEnum.ES_CLIENT) { let elsticSearchClientInterface = layerprotocol[j][onfAttributes.LAYER_PROTOCOL.ES_CLIENT_INTERFACE_PAC]; - if ( elsticSearchClientInterface!== undefined) { - let elasticSearchConfiguration = elsticSearchClientInterface[onfAttributes.ES_CLIENT.CONFIGURATION] - if (elasticSearchConfiguration !== undefined) { - delete elasticSearchConfiguration ["auth"] + if (elsticSearchClientInterface !== undefined) { + let elasticSearchConfiguration = elsticSearchClientInterface[onfAttributes.ES_CLIENT.CONFIGURATION] + if (elasticSearchConfiguration !== undefined) { + delete elasticSearchConfiguration["auth"] } - } - } + } + } + else if (layerProtocalName == LayerProtocol.layerProtocolNameEnum.HTTP_SERVER) { + let httpServerInterface = layerprotocol[j][onfAttributes.LAYER_PROTOCOL.HTTP_SERVER_INTERFACE_PAC]; + if (httpServerInterface !== undefined) { + let httpServerCapacity = httpServerInterface[onfAttributes.HTTP_SERVER.CAPABILITY] + if (httpServerCapacity !== undefined) { + delete httpServerCapacity[onfAttributes.HTTP_SERVER.RELEASE_LIST] + } + } + } } }