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/06/24 01:40:00 UTC

[jira] [Resolved] (VELTOOLS-138) StrutsLinkTool breaks paths containing a query string

     [ https://issues.apache.org/jira/browse/VELTOOLS-138?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claude Brisson resolved VELTOOLS-138.
-------------------------------------
    Resolution: Won't Fix
      Assignee: Claude Brisson

trunk dropped velocity-tools-struts

> StrutsLinkTool breaks paths containing a query string
> -----------------------------------------------------
>
>                 Key: VELTOOLS-138
>                 URL: https://issues.apache.org/jira/browse/VELTOOLS-138
>             Project: Velocity Tools
>          Issue Type: Bug
>          Components: GenericTools
>    Affects Versions: 2.0
>            Reporter: Gabriel Lavoie
>            Assignee: Claude Brisson
>            Priority: Major
>              Labels: patch
>             Fix For: 3.0
>
>         Attachments: velocity-tools-strutslinktool-query-string-bug.patch
>
>   Original Estimate: 0h
>  Remaining Estimate: 0h
>
> When using StrutsLinkTool with a Struts global-forward containing a query string in its path, the question mark separating the path from the query string gets encoded into %3F and the generated link is broken. I traced problem down to the "public LinkTool absolute(Object obj)" method from the "LinkTool" class that doesn't manage well "non-absolute" links (not starting with the "http" prefix). Those links are managed as if they were only a path and the query string isn't extracted. The Java URI class is able to manage such link to extract correctly the information.



--
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