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

Sandeep More commented on KNOX-1277:
------------------------------------

Thanks for linking the issue [~risdenk] ! This one is a special case (looks 
like every case is :)), the hdfs UI uses the Meta tag
{code:java}
<meta http-equiv="REFRESH" content="0;url=dfshealth.html"/>{code}
one of the things I am playing around is using the prefix rule, given how picky 
Knox is there are certain symbols that have special meaning, like =, so they 
need to be encoded, since we use XML parser to parse rewrite.xml file, this XML 
safe encoding will be lost (the parser will replace it, and rightly so), this 
was the rule that I found worked for me (use &equals; to encode = )
{code:java}
  <rule dir="OUT" name="HDFSUI/hdfs/inbound/namenode/root/filter/refresh-tag">
     <rewrite template="{$prefix[0;url&amp;#61;,url]}/hdfs/dfshealth.html"/>
   </rule>{code}
 

> When knox urls are not ending with "/" hdfs UI home page is not coming up
> -------------------------------------------------------------------------
>
>                 Key: KNOX-1277
>                 URL: https://issues.apache.org/jira/browse/KNOX-1277
>             Project: Apache Knox
>          Issue Type: Bug
>            Reporter: Bharat Viswanadham
>            Priority: Major
>         Attachments: KNOX-1277.00.patch, KNOX-1277.01.patch
>
>
> [https://host:8443/gateway/|https://ctr-e138-1518143905142-201781-01-000004.hwx.site:8443/gateway/ui/hdfs]sandox/hdfs
>  will not load up UI.
> whereas 
> [https://host:8443/gateway/|https://ctr-e138-1518143905142-201781-01-000004.hwx.site:8443/gateway/ui/hdfs]sandox/hdfs/
>  this loads up.
>  
> This Jira is created to fix this issue.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to