What steps will reproduce the problem?
1. created the following rule:
<rule>
<from>/es/health-plan-coverage-and-costs</from>
<to type="redirect">%{context-path}/es/page/site_map</to>
</rule>
2.
TEST: localhost:8080/healthinsurance/es/health-plan-coverage-and-costs
3.
url formed is: es/healthinsurance/page/site_map (es and context path reversed)
from the console:
2015-01-08
15:07:38.432:INFO:/healthinsurance:org.tuckey.web.filters.urlrewrite.UrlRewriteF
ilter DEBUG: checking for status path on
/healthinsurance/es/health-plan-coverage-and-costs
2015-01-08
15:07:38.432:INFO:/healthinsurance:org.tuckey.web.filters.urlrewrite.UrlRewriter
DEBUG: processing request for /es/health-plan-coverage-and-costs
2015-01-08
15:07:38.432:INFO:/healthinsurance:org.tuckey.web.filters.urlrewrite.RuleBase
DEBUG: Rule 0 run called with /es/health-plan-coverage-and-costs
2015-01-08
15:07:38.432:INFO:/healthinsurance:org.tuckey.web.filters.urlrewrite.RuleBase
DEBUG: matched "from"
2015-01-08
15:07:38.432:INFO:/healthinsurance:org.tuckey.web.filters.urlrewrite.substitutio
n.VariableReplacer DEBUG: variable %{context-path} type: context-path
2015-01-08
15:07:38.432:INFO:/healthinsurance:org.tuckey.web.filters.urlrewrite.substitutio
n.VariableReplacer DEBUG: resolved to: /healthinsurance
2015-01-08
15:07:38.433:INFO:/healthinsurance:org.tuckey.web.filters.urlrewrite.substitutio
n.VariableReplacer DEBUG: replaced sb is /healthinsurance/page/site_map
2015-01-08
15:07:38.433:INFO:/healthinsurance:org.tuckey.web.filters.urlrewrite.RuleExecuti
onOutput DEBUG: needs to be redirected to /es/healthinsurance/page/site_map
2015-01-08
15:07:38.433:INFO:/healthinsurance:org.tuckey.web.filters.urlrewrite.RuleBase
DEBUG: Rule 1 run called with /es/healthinsurance/page/site_map
What is the expected output? What do you see instead?
should be: /healthinsurance/es/page/site_map - but 'es' and context path are
reversed
What version of the product are you using? On what operating system?
4.0.3 using Spring Tool Suite 3 on Mac OS
Original issue reported on code.google.com by maxtprop...@gmail.com on 8 Jan 2015 at 11:13
Original issue reported on code.google.com by
maxtprop...@gmail.com
on 8 Jan 2015 at 11:13