You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@knox.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2019/08/29 15:12:00 UTC

[jira] [Work logged] (KNOX-1999) Atlas UI proxied via Knox: hdfs LOCATION field has the location set to https:// instead of hdfs://

     [ https://issues.apache.org/jira/browse/KNOX-1999?focusedWorklogId=303754&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-303754 ]

ASF GitHub Bot logged work on KNOX-1999:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 29/Aug/19 15:11
            Start Date: 29/Aug/19 15:11
    Worklog Time Spent: 10m 
      Work Description: moresandeep commented on pull request #139: KNOX-1999 - Make WEBHDFS rule that rewrites hdfs:// local
URL: https://github.com/apache/knox/pull/139
 
 
   ## What changes were proposed in this pull request?
   All WEBHDFS rules are global for backwards compatibility, as a result the rule 'WEBHDFS/webhdfs/outbound' is rewriting links from AtlasUI.
   There is no reason to rewrite hdfs:// to https://, at-least for other UIs so we need to limit the scope of this rule to local scope from global scope.
   
   The fix is to make the scope of this rule local.
   
   ## How was this patch tested?
   The patch was manually tested on a local hadoop cluster.
   
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

            Worklog Id:     (was: 303754)
    Remaining Estimate: 0h
            Time Spent: 10m

> Atlas UI proxied via Knox: hdfs LOCATION field has the location set to https:// instead of hdfs://
> --------------------------------------------------------------------------------------------------
>
>                 Key: KNOX-1999
>                 URL: https://issues.apache.org/jira/browse/KNOX-1999
>             Project: Apache Knox
>          Issue Type: Bug
>          Components: Server
>            Reporter: Sandeep More
>            Assignee: Sandeep More
>            Priority: Major
>             Fix For: 1.4.0
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> The issue is that the following WEBHDFS rule
> {code:xml}
>     <rule dir="OUT" name="WEBHDFS/webhdfs/outbound" pattern="hdfs://*:*/{path=**}?{**}">
>         <rewrite template="{$frontend[url]}/webhdfs/v1/{path=**}?{**}"/>
>     </rule>
> {code}
> All WEBHDFS rules are global for backwards compatibility, as a result this rule is rewriting links from AtlasUI.
> There is no reason to rewrite hdfs:// to [https://,|https://,/] at-least for other UIs so we need to limit the scope of this rule to local scope from global scope.
> {code:xml}
>     <rule dir="OUT" scope="WEBHDFS" name="WEBHDFS/webhdfs/outbound" pattern="hdfs://*:*/{path=**}?{**}">
>         <rewrite template="{$frontend[url]}/webhdfs/v1/{path=**}?{**}"/>
>     </rule>
> {code}



--
This message was sent by Atlassian Jira
(v8.3.2#803003)