[ 
https://issues.apache.org/jira/browse/HDFS-14692?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16898275#comment-16898275
 ] 

Lokesh Jain commented on HDFS-14692:
------------------------------------

The patch fixes the issue by encoding just the directory part in the url. The 
upload file button still fails with Mixed content error after the fix. The 
mixed content error would require another fix.
{code:java}
jquery-3.3.1.min.js:2 Mixed Content: The page at 
'https://127.0.0.1:9999/gateway/default/hdfs/explorer.html#/app-logs' was 
loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 
'http://nn-host:50075/webhdfs/v1/app-logs/BUILDING.txt?op=CREATE&doas=drwho&namenoderpcaddress=nn-host:8020&createflag=&createparent=true&overwrite=false'.
 This request has been blocked; the content must be served over HTTPS.
{code}

> Upload button should not encode complete url
> --------------------------------------------
>
>                 Key: HDFS-14692
>                 URL: https://issues.apache.org/jira/browse/HDFS-14692
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: Lokesh Jain
>            Assignee: Lokesh Jain
>            Priority: Major
>         Attachments: HDFS-14692.001.patch
>
>
> explorer.js#modal-upload-file-button currently does not work with knox. The 
> function encodes the complete url and thus creates a malformed url. This 
> leads to an error while uploading the file.
> Example of malformed url - 
> "https%3A//127.0.0.1%3A9999/gateway/default/webhdfs/v1/app-logs/BUILDING.txt?op=CREATE&noredirect=true"



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to