Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.0
-
None
Description
As reported by Jonas Esser on the mailing list, a url of form
http://foo.example?productId=#
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=#
</to-view-id>
<redirect/>
</navigation-case>