jersy / urlrewritefilter

Automatically exported from code.google.com/p/urlrewritefilter
Other
0 stars 0 forks source link

Redirects converting ? to & #139

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Setting a redirect rule from one .jsp path to another
2.Having a parameter in the initial .jsp path that isn't manipulated by 
URLRewrite
3.

What is the expected output? What do you see instead?
site.com/main/index.jsp?parameter should rewrite to 
site.com/mobile/index.jsp?parameter

Instead I am getting site.com/mobile/index.jsp&parameter which returns 404s.

What version of the product are you using? On what operating system?
http://tuckey.org/res/dtds/urlrewrite3.2.dtd

Please provide any additional information below.
This is for a large company that runs off an ATG backend.

Original issue reported on code.google.com by rud...@gmail.com on 30 Apr 2013 at 2:17

GoogleCodeExporter commented 9 years ago
version 4.0.4.

<from>/public/license-lookup.html</from>
<to type="permanent-redirect" 
qsappend="true">%{context-path}/public/license-lookup.xhtml</to>

From 
/public/license-lookup.html?ip=xxxxx
will redirect to 
/public/license-lookup.xhtml&ip=xxxxx

Original comment by rumato...@gmail.com on 18 Nov 2013 at 3:51

GoogleCodeExporter commented 9 years ago
Actually this is a blocker for. Is there any workaround? I tired to to use the 
path-info and query-string variables, but a least path-info is always empty in 
my case.

Original comment by Karsten....@googlemail.com on 18 Oct 2014 at 3:52

GoogleCodeExporter commented 9 years ago
A found a workaround using a regex (the example shows how to forward external 
traffic to elasticsearch using a proxy):

<rule match-type="regex">
        <from>/foobar(.*)$</from>
        <to type="proxy">http://localhost:9200$1</to>
    </rule>

Original comment by Karsten....@googlemail.com on 18 Oct 2014 at 4:18

GoogleCodeExporter commented 9 years ago
In my case I have use the proxy for subdomain to proxy web page on other 
server. It works but login failed. Its seems that cookies and jsession is not 
copied behind the proxy..

<rule>
        <condition name="host">sub.domain.com</condition>
        <from>^/(.*)</from>
        <to type="proxy" last="true">http://192.168.2.2/$1</to>
</rule>

Original comment by syt...@gmail.com on 17 Nov 2014 at 12:55