From ed0658a57903cd8abdcb7caaf54d7bf3e1f618ab Mon Sep 17 00:00:00 2001 From: Arun Suresh Date: Mon, 13 Nov 2017 13:49:08 -0800 Subject: [PATCH] Addendum patch for Configuration fix. (Jason Lowe via asuresh) (cherry picked from commit 4e847d63a39268d8a34e0f22ddb5e40c5ef71e3a) --- .../src/main/java/org/apache/hadoop/conf/Configuration.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/conf/Configuration.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/conf/Configuration.java index 253257080c3..283308b00dc 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/conf/Configuration.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/conf/Configuration.java @@ -2852,7 +2852,8 @@ public class Configuration implements Iterable>, // xi:include are treated as inline and retain current source URL include = getResource(confInclude); if (include != null) { - Resource classpathResource = new Resource(include, name); + Resource classpathResource = new Resource(include, name, + wrapper.isParserRestricted()); loadResource(properties, classpathResource, quiet); } else { URL url; @@ -2873,7 +2874,8 @@ public class Configuration implements Iterable>, } url = href.toURI().toURL(); } - Resource uriResource = new Resource(url, name); + Resource uriResource = new Resource(url, name, + wrapper.isParserRestricted()); loadResource(properties, uriResource, quiet); } break;