You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@knox.apache.org by "Nishant Bangarwa (JIRA)" <ji...@apache.org> on 2016/12/06 16:18:58 UTC

[jira] [Created] (KNOX-800) Broken handling of fragments separated with '#' in url rewriting

Nishant Bangarwa created KNOX-800:
-------------------------------------

             Summary: Broken handling of fragments separated with '#' in url rewriting
                 Key: KNOX-800
                 URL: https://issues.apache.org/jira/browse/KNOX-800
             Project: Apache Knox
          Issue Type: Bug
            Reporter: Nishant Bangarwa


Knox considers fragment incorrectly as part of URL. 
With the below rewriting rule - 
{code}
  <rule dir="IN" name="SUPERSET-UI/superset-ui/inbound/api" pattern="*://*:*/**/superset/{path=**}#{fragment=**}">
    <rewrite template="{$serviceUrl[SUPERSET-UI]}/superset/{path=**}#{fragment=**}"/>
  </rule>
{code}
logs - 
{code}
2016-12-06 21:44:35,932 DEBUG hadoop.gateway (UrlRewriteProcessor.java:rewrite(180)) - Rewrote URL: /superset/sqllab#search, direction: OUT via implicit rule: SUPERSET-UI/superset-ui/outbound/superset to
 URL: https://localhost:8443/gateway/sandbox/superset-ui/superset/sqllab/search
{code}

Note the expected rewritten url is https://localhost:8443/gateway/sandbox/superset-ui/superset/sqllab#search



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)