[
https://issues.apache.org/jira/browse/MYFACES-4052?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15339443#comment-15339443
]
Leonardo Uribe commented on MYFACES-4052:
-----------------------------------------
I checked the code step by step, and it looks like the call to
ViewHandler.getBookmarkableURL(...) before the end calls to
ExternalContext.encodeActionURL(...), which according to the spec:
"... Return the input URL, after performing any rewriting needed to ensure that
it will correctly identify an addressable action in the current application.
..."
In fact there is a rewriting there, which put all parameters in a map again,
but in that moment the previous param is lost.
JSF 2.2 section 7.6.2 enforces call encodeActionURL at the end of
getBookmarkableURL.
Other problem I see is in the RFC 3986 there is no mention about use a query
param with multiple values, so we are in a case where this detail is not
specified, even if it is used somehow.
I can remember of some issues related to encodeActionURL, where a param was
written on the url more than once and the code is there is used to clean the
URL, as the javadoc says. It should be fixed at spec level, so I'll close it
again as won't fix.
> Multiple <f:param> with same name encodes only last one in link URL
> -------------------------------------------------------------------
>
> Key: MYFACES-4052
> URL: https://issues.apache.org/jira/browse/MYFACES-4052
> Project: MyFaces Core
> Issue Type: Bug
> Affects Versions: 2.2.10
> Environment: TomEE 7.0.0
> Reporter: Bauke Scholtz
> Assignee: Leonardo Uribe
>
> Consider:
> {code}
> <h:link value="link">
> <f:param name="p" value="foo"/>
> <f:param name="p" value="bar"/>
> </h:link>
> {code}
> MyFaces 2.2.10 renders only last one in link URL instead of both.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)