[jboss-jira] [JBoss JIRA] (WFLY-8642) rewrite handler handles references to contextual values incorrect

Stuart Douglas (JIRA) issues at jboss.org
Wed Nov 15 18:47:00 EST 2017


     [ https://issues.jboss.org/browse/WFLY-8642?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stuart Douglas resolved WFLY-8642.
----------------------------------
    Fix Version/s: 12.0.0.Alpha1
       Resolution: Done


> rewrite handler handles references to contextual values incorrect
> -----------------------------------------------------------------
>
>                 Key: WFLY-8642
>                 URL: https://issues.jboss.org/browse/WFLY-8642
>             Project: WildFly
>          Issue Type: Bug
>          Components: Web (Undertow)
>    Affects Versions: 10.1.0.Final
>         Environment: * Windows 10
> * Wildfly 10.1.0 Final
> * Undertow Subsystem 1.4.13
>            Reporter: Markus Stier
>            Assignee: Stuart Douglas
>             Fix For: 12.0.0.Alpha1
>
>
> Context:
> A URL in the form of "http://somehost.org/path/a/b" should be rewritten to "http://somehost.org/newpath?param1=a&param2=b"
> The following filter should perform this rewrite:
> {code}
> <expression-filter name="rewrite-path" expression="regex('^/path/([^/]+)/(.*)/?$') -> rewrite('/newpath'); set(attribute='%{QUERY_STRING}', value='param1=$1&amp;param2=$2'); done()"/>
> {code}
> Problem:
> The output is (according to access-log);
> {code}
> somehost.org "GET /newpath?param1=b 
> {code}
> * param1 is assigned to the value of $2
> * param2 is dropped completly



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the jboss-jira mailing list