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

Global Rewrite Rules for a Topology are Problematic

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.9.1
    • Server
    • None

    Description

      Due to the fact that the rewrite rules for a topology are global, matching patterns that are more generic may cause indeterminate URL rewriting. This is more of a problem for proxying UIs than it is for services but since the patterns are up to the discretion of the developer they could certainly also apply to service definitions.

      For instance, the JOBHISTORY UI rewrite.xml contains a pattern like "/static/**". This pattern will match an root relative URLs that start with "static". Since other hadoop UIs that may be proxied through the same topology will reference similar resources, the URL rewriting may match the pattern from the wrong application and interject the service/UI name into the URL which will result in 404's.

      This has been observed for the HBase UI when the JOBHISTORY UI is also in the same topology.

      The workaround for this issue is to deploy separate topologies for UIs that have overlapping matching patterns.

      Attachments

        1. KNOX_711.patch
          37 kB
          Sumit Gupta
        2. KNOX_711-2.patch
          38 kB
          Sumit Gupta

        Activity

          People

            sumit.gupta Sumit Gupta
            lmccay Larry McCay
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: