Uploaded image for project: 'Apache Knox'
  1. Apache Knox
  2. KNOX-2841

Oozie "root" rewrite rule's pattern is too open

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.6.0
    • 2.0.0
    • None
    • None

    Description

      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:

          <rule dir="IN" name="OOZIE/oozie/root" pattern="*://*:*/**/oozie/{**}?{**}">
              <rewrite template="{$serviceUrl[OOZIE]}/{**}?{**}"/>
          </rule> 
      

      When I changed it to

          <rule dir="IN" name="OOZIE/oozie/root" pattern="http*://*:*/**/oozie/{**}?{**}">
              <rewrite template="{$serviceUrl[OOZIE]}/{**}?{**}"/>
          </rule> 
      

      in my test environment then the Hue UI showed me the correct HDFS path.

       

      I am creating the pull request soon.

      Attachments

        Activity

          People

            dionusos Dénes Bodó
            dionusos Dénes Bodó
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 40m
                40m