You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by we...@apache.org on 2019/08/06 22:31:31 UTC
[hadoop] branch branch-3.1 updated: HDFS-14692. Upload button
should not encode complete url. Contributed by Lokesh Jain.
This is an automated email from the ASF dual-hosted git repository.
weichiu pushed a commit to branch branch-3.1
in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/branch-3.1 by this push:
new d06fca0 HDFS-14692. Upload button should not encode complete url. Contributed by Lokesh Jain.
d06fca0 is described below
commit d06fca010499832bb70a5fed787fa32aa27b73a2
Author: Lokesh Jain <lj...@apache.org>
AuthorDate: Tue Aug 6 15:30:14 2019 -0700
HDFS-14692. Upload button should not encode complete url. Contributed by Lokesh Jain.
Signed-off-by: Wei-Chiu Chuang <we...@apache.org>
(cherry picked from commit 954ff36360e083010f395cb9d3bd46701417e7b7)
(cherry picked from commit f6fe18a282ce0ed729b6b7586c17b2046a612070)
---
hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/explorer.js | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/explorer.js b/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/explorer.js
index 0520192..de9916e 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/explorer.js
+++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/explorer.js
@@ -442,8 +442,7 @@
for(var i = 0; i < $('#modal-upload-file-input').prop('files').length; i++) {
(function() {
var file = $('#modal-upload-file-input').prop('files')[i];
- var url = '/webhdfs/v1' + current_directory;
- url = encode_path(append_path(url, file.name));
+ var url = '/webhdfs/v1' + encode_path(append_path(current_directory, file.name));
url += '?op=CREATE&noredirect=true';
files.push( { file: file } )
files[i].request = $.ajax({
---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org