diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/web/webhdfs/ParameterParser.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/web/webhdfs/ParameterParser.java index aaaba7326a0..233b4f233e8 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/web/webhdfs/ParameterParser.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/web/webhdfs/ParameterParser.java @@ -58,8 +58,7 @@ class ParameterParser { private final Map> params; ParameterParser(QueryStringDecoder decoder, Configuration conf) { - this.path = decodeComponent(decoder.path().substring(WEBHDFS_PREFIX_LENGTH), - StandardCharsets.UTF_8); + this.path = decoder.path().substring(WEBHDFS_PREFIX_LENGTH); this.params = decoder.parameters(); this.conf = conf; } diff --git a/hadoop-project/pom.xml b/hadoop-project/pom.xml index c6045a9c2f4..d6252df8fd5 100644 --- a/hadoop-project/pom.xml +++ b/hadoop-project/pom.xml @@ -716,7 +716,7 @@ io.netty netty-all - 4.0.23.Final + 4.0.52.Final