jersy / urlrewritefilter

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

Functions like replaceFirst do not always parse correctly when other expressions used #137

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
When a function contains other expressions, or is followed by other 
expressions, parsing does not appear to act correctly

Trying to pass a url like this:
www.mysite.com/?locale=uk

Some work as expected, some do not:
Example parsings:

to:       http://${replaceFirst:%{server-name}:www:test}
actual:   http://test.mysite.com
expected: http://test.mysite.com

to:       http://${replaceFirst:%{server-name}:www:%{parameter:locale}}   
actual:   http://%{parameter:locale}.mysite.com
expected: http://uk.mysite.com

to:       http://%{parameter:locale}.${replaceFirst:%{server-name}:www:test}
actual:   http://uk.test.mysite.com
expected: http://uk.test.mysite.com

to:       http://${replaceFirst:%{server-name}:www:test}/%{parameter:locale}
actual:   http://test}/%{parameter:locale.mysite.com
expected: http://test.mysite.com/uk

Original issue reported on code.google.com by nathan.m...@gmail.com on 3 Apr 2013 at 10:07