summaryrefslogtreecommitdiffstats
path: root/cps-service/src
diff options
context:
space:
mode:
authormpriyank <priyank.maheshwari@est.tech>2023-01-04 15:33:42 +0000
committermpriyank <priyank.maheshwari@est.tech>2023-01-04 16:21:52 +0000
commitfef4e5a9a4098cff5c9a5829f2dde9e99890e3e8 (patch)
treeee774217e849dab0880cb9b3f770de2a6282bf72 /cps-service/src
parentd4fd02f79d1fa110d2008dbadcb7d1f065f0ff86 (diff)
XEE add more property
- adding few more properties to fix the problem Issue-ID: CPS-1435 Change-Id: I2e952b38bae5dab396911ea1ce4a1125d0402369 Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
Diffstat (limited to 'cps-service/src')
-rw-r--r--cps-service/src/main/java/org/onap/cps/utils/XmlFileUtils.java2
1 files changed, 2 insertions, 0 deletions
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 bbff5efa20..ae097eaaaf 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;
}