Repository: incubator-slider Updated Branches: refs/heads/develop 6ecd0b0a4 -> 3fc1cbc91
SLIDER-1243 Enable XML validation in ConfigHelper Project: http://git-wip-us.apache.org/repos/asf/incubator-slider/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-slider/commit/3fc1cbc9 Tree: http://git-wip-us.apache.org/repos/asf/incubator-slider/tree/3fc1cbc9 Diff: http://git-wip-us.apache.org/repos/asf/incubator-slider/diff/3fc1cbc9 Branch: refs/heads/develop Commit: 3fc1cbc91e85c752d191e345bb32a3faa3ecca49 Parents: 6ecd0b0 Author: Gour Saha <gourks...@apache.org> Authored: Tue Aug 29 14:47:23 2017 -0700 Committer: Gour Saha <gourks...@apache.org> Committed: Tue Aug 29 14:47:23 2017 -0700 ---------------------------------------------------------------------- .../src/main/java/org/apache/slider/common/tools/ConfigHelper.java | 1 + 1 file changed, 1 insertion(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-slider/blob/3fc1cbc9/slider-core/src/main/java/org/apache/slider/common/tools/ConfigHelper.java ---------------------------------------------------------------------- diff --git a/slider-core/src/main/java/org/apache/slider/common/tools/ConfigHelper.java b/slider-core/src/main/java/org/apache/slider/common/tools/ConfigHelper.java index 9db241d..a1dd6f4 100644 --- a/slider-core/src/main/java/org/apache/slider/common/tools/ConfigHelper.java +++ b/slider-core/src/main/java/org/apache/slider/common/tools/ConfigHelper.java @@ -308,6 +308,7 @@ public class ConfigHelper { //allow includes in the xml file docBuilderFactory.setNamespaceAware(true); docBuilderFactory.setXIncludeAware(true); + docBuilderFactory.setValidating(true); DocumentBuilder builder = docBuilderFactory.newDocumentBuilder(); return builder.parse(in); }