Jeffrey E Rodriguez created KNOX-535:
-----------------------------------------
Summary: Rewrite html body content so web interfaces can be proxy
through Knox
Key: KNOX-535
URL: https://issues.apache.org/jira/browse/KNOX-535
Project: Apache Knox
Issue Type: Improvement
Components: Server
Affects Versions: 0.5.0
Environment: All environments.
Reporter: Jeffrey E Rodriguez
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
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)