[
https://issues.apache.org/jira/browse/SLING-7000?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16076491#comment-16076491
]
Konrad Windszus commented on SLING-7000:
----------------------------------------
I would strongly recommend to only rely on {{java.net.URI}} internally both to
parse the original URI (instead of the PathInfo class) and also to construct
the new/modified URI, instead of manually creating the string.
> HTL: URIManipulatorFilterExtension destroys mailto links
> --------------------------------------------------------
>
> Key: SLING-7000
> URL: https://issues.apache.org/jira/browse/SLING-7000
> Project: Sling
> Issue Type: Bug
> Components: Scripting
> Affects Versions: Scripting Sightly Engine 1.0.0, Scripting HTL Engine
> 1.0.34
> Reporter: Konrad Windszus
>
> When using the URI manipulator's extension option
> (https://github.com/Adobe-Marketing-Cloud/htl-spec/blob/master/SPECIFICATION.md#125-uri-manipulation)
> on a mailto link the value is completely messed up.
> {code:java}
> <a href="${'mailto:[email protected]' @ extension='html'}">
> {code}
> The {{URIManipulationFilterExtension}} returns
> {code}
> mailto://null.html
> {code}
> through its {{call(...)}} method with parameter {{arguments}} being set to
> {code}
> [mailto:[email protected], {extension=html}]
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)