From 9454dc5e8091354cd0a4b8c8aa5f4004529db5d5 Mon Sep 17 00:00:00 2001 From: Kihwal Lee Date: Thu, 13 Oct 2016 08:47:15 -0500 Subject: [PATCH] HDFS-11000. webhdfs PUT does not work if requests are routed to call queue. Contributed by Kihwal Lee. --- .../server/namenode/web/resources/NamenodeWebHdfsMethods.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/web/resources/NamenodeWebHdfsMethods.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/web/resources/NamenodeWebHdfsMethods.java index 4887e356fe..4247a673bc 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/web/resources/NamenodeWebHdfsMethods.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/web/resources/NamenodeWebHdfsMethods.java @@ -332,7 +332,7 @@ private URI redirectURI(final NameNode namenode, } else { //generate a token final Token t = generateDelegationToken( - namenode, ugi, userPrincipal.getName()); + namenode, ugi, null); delegationQuery = "&" + new DelegationParam(t.encodeToUrlString()); } final String query = op.toQueryString() + delegationQuery