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

Rewrite html body content so web interfaces can be proxy through Knox

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.5.0
    • 0.7.0
    • Server
    • None
    • All environments.

    Description

      Rewrite html body content so web interfaces can be proxy through Knox.
      The root name and deployment can be obtained through API.

      This would apply for tags that may have reference attributes such as "href" or "src".

      There are 3 cases for URL references:
      1. Relative URLs . They not need to be re-written.
      2. Absoluted URLs without hostname. They need to be rewritten to include
      /${ROOT_TAG}/${DEPLOYMENT}/
      3. Absolute URL's with hostname. If hostname outside cluster may not need to be rewritten. If inside the cluster they may need to be re-written.

      Some initial code seems to be already at gateway-provuder-rewrite,
      /src/main/java/org/apache/hadoop/gateway/filter/rewrite/impl/html

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jeffreyr97 Jeffrey E Rodriguez
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: