Attila Magyar created KNOX-2823:
-----------------------------------

             Summary: Path parameter in a rewrite rule interferes with query 
parameter with the same name
                 Key: KNOX-2823
                 URL: https://issues.apache.org/jira/browse/KNOX-2823
             Project: Apache Knox
          Issue Type: Bug
            Reporter: Attila Magyar
            Assignee: Attila Magyar


Given the following rewrite rule:

{code}
 <rule dir="IN" name="RECON/recon/inbound" 
pattern="*://*:*/**/recon/{path=**}?{**}">
        <rewrite template="{$serviceUrl[RECON]}/{path=**}?{**}"/>
    </rule>
{code}

This URL 
https://localhost:8443/gateway/sandbox/recon/api/v1/namespace/du?path=tmp  

is dispatched to

http://amagyar-2.amagyar.root.hwx.site:9888/api/v1/namespace/du/tmp

If I change the {path=**} to {xxx_unique_path=**} it will work, but it won't 
work with namespace/du?xxx_unique_path=tmp 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to