From fef4e5a9a4098cff5c9a5829f2dde9e99890e3e8 Mon Sep 17 00:00:00 2001 From: mpriyank Date: Wed, 4 Jan 2023 15:33:42 +0000 Subject: [PATCH] XEE add more property - adding few more properties to fix the problem Issue-ID: CPS-1435 Change-Id: I2e952b38bae5dab396911ea1ce4a1125d0402369 Signed-off-by: mpriyank --- cps-service/src/main/java/org/onap/cps/utils/XmlFileUtils.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cps-service/src/main/java/org/onap/cps/utils/XmlFileUtils.java b/cps-service/src/main/java/org/onap/cps/utils/XmlFileUtils.java index bbff5efa2..ae097eaaa 100644 --- a/cps-service/src/main/java/org/onap/cps/utils/XmlFileUtils.java +++ b/cps-service/src/main/java/org/onap/cps/utils/XmlFileUtils.java @@ -166,6 +166,8 @@ public class XmlFileUtils { if (isNewDocumentBuilderFactoryInstance) { documentBuilderFactory.setFeature("http://apache.org/xml/features/disallow-doctype-decl", true); documentBuilderFactory.setFeature(XMLConstants.FEATURE_SECURE_PROCESSING, true); + documentBuilderFactory.setAttribute(XMLConstants.ACCESS_EXTERNAL_DTD, ""); + documentBuilderFactory.setAttribute(XMLConstants.ACCESS_EXTERNAL_SCHEMA, ""); isNewDocumentBuilderFactoryInstance = false; } -- 2.16.6