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 subversion and git services (Jira)" <ji...@apache.org> on 2023/01/25 11:18:00 UTC

[jira] [Commented] (KNOX-2841) Oozie "root" rewrite rule's pattern is too open

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

ASF subversion and git services commented on KNOX-2841:
-------------------------------------------------------

Commit dfde5c7417cfd111478df30c29f556fd31a2a7d8 in knox's branch refs/heads/master from Denes Bodo
[ https://gitbox.apache.org/repos/asf?p=knox.git;h=dfde5c741 ]

KNOX-2841 Oozie "root" rewrite rule's pattern is too open (#718)

* KNOX-2675 Oozie Console URL on the web UI should be a Knox URL

* KNOX-2841 Oozie "root" rewrite rule's pattern is too open

> Oozie "root" rewrite rule's pattern is too open
> -----------------------------------------------
>
>                 Key: KNOX-2841
>                 URL: https://issues.apache.org/jira/browse/KNOX-2841
>             Project: Apache Knox
>          Issue Type: Bug
>    Affects Versions: 1.6.0
>            Reporter: Dénes Bodó
>            Assignee: Dénes Bodó
>            Priority: Major
>             Fix For: 2.0.0
>
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> It seems that the "root" rewrite rule for Oozie is too open and causes the following issue:
> When we use Apache Hue as the UI for Oozie and we define a workflow property for a file path like
> *hdfs://mnameservice1/oozie/test*
> then on Hue's workflow details page we will see an url for that property like:
> *[http://oozie-host.examole.com:11000/oozie/test]*
> And it seems this replacement is due to the following rule:
> {code:xml}
>     <rule dir="IN" name="OOZIE/oozie/root" pattern="*://*:*/**/oozie/{**}?{**}">
>         <rewrite template="{$serviceUrl[OOZIE]}/{**}?{**}"/>
>     </rule> 
> {code}
> When I changed it to
> {code:xml}
>     <rule dir="IN" name="OOZIE/oozie/root" pattern="http*://*:*/**/oozie/{**}?{**}">
>         <rewrite template="{$serviceUrl[OOZIE]}/{**}?{**}"/>
>     </rule> 
> {code}
> in my test environment then the Hue UI showed me the correct HDFS path.
>  
> I am creating the pull request soon.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)