You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Claude Brisson (JIRA)" <de...@velocity.apache.org> on 2018/10/01 04:43:00 UTC

[jira] [Commented] (VELTOOLS-143) LinkTool.uri() causes mailto: links to ignore parameters added using param() method

    [ https://issues.apache.org/jira/browse/VELTOOLS-143?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16633610#comment-16633610 ] 

Claude Brisson commented on VELTOOLS-143:
-----------------------------------------

The situation is even worse, because with calls like:
 {{  $link.params("subject", "foo").uri("mailto:john@blah.com?cc=jim@blah.com")}}
 we would have to manually merge the query strings.

It looks like the proper way of handling this would be to use the mutable [org.apache.http.client.utils.URIBuilder|https://hc.apache.org/httpcomponents-client-ga/httpclient/apidocs/org/apache/http/client/utils/URIBuilder.html] all over the place instead of the java.net.URI class.

 

> LinkTool.uri() causes mailto: links to ignore parameters added using param() method
> -----------------------------------------------------------------------------------
>
>                 Key: VELTOOLS-143
>                 URL: https://issues.apache.org/jira/browse/VELTOOLS-143
>             Project: Velocity Tools
>          Issue Type: Bug
>          Components: GenericTools
>    Affects Versions: 2.0
>         Environment: Velocity 1.7, Velocity Tools 2.0
>            Reporter: Christopher Schultz
>            Priority: Minor
>
> This worked in Velocity Tools 1.4.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org