RequestParameterProviderManager fails when template URL includes EL expressions
-------------------------------------------------------------------------------
Key: ORCHESTRA-13
URL: https://issues.apache.org/jira/browse/ORCHESTRA-13
Project: MyFaces Orchestra
Issue Type: Bug
Components: RequestParameterProvider
Affects Versions: 1.0
Reporter: Simon Kitching
As reported by Jonas Esser on the mailing list, a url of form
http://foo.example?productId=#{var}
fails badly; the final url is:
http://foo.example?productId=&contextId=1val
This occurs in the "petstore" orchestra example, when viewing a product's
details.
The problem is that RequestParameterProvidedManager thinks the "#" is a url
fragment marker. Query params go before fragment markers, eg
http://foo.example?productId=5#anchor
does correctly become
http://foo.example?productId=5&contextId=1#anchor
But #{...} is NOT an anchor. In the petstore example, the url can be found in
faces-config.xml:
<navigation-case>
<from-outcome>ProductDetails</from-outcome>
<to-view-id>/mops/ProductDetail.jsp?productId=#{param.productId}</to-view-id>
<redirect/>
</navigation-case>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.