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 18:06:58 UTC

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

    [ https://issues.apache.org/jira/browse/KNOX-800?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15726244#comment-15726244 ] 

Nishant Bangarwa commented on KNOX-800:
---------------------------------------

+cc [~sumit.gupta]

> 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)