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

Tighten the rewrite rule on oozieui to reduce false positives

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 0.14.0
    • Fix Version/s: 0.14.0
    • Component/s: Server
    • Labels:
      None
    • Flags:
      Patch

      Description

      Currently oozieui rule will match uri with any scheme, which sometimes could cause false positives. For example the following rule in oozieui will rewrite viewfs://ns-default/foo/bar/oozie/myfile.jar to http://oozie:11000/oozie/myfile.jar

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

      The attached patch will tighten the rule to match only http and https schemes.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                weihan Wei Han
                Reporter:
                weihan Wei Han
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: