Velocity Tools
  1. Velocity Tools
  2. VELTOOLS-138

StrutsLinkTool breaks paths containing a query string

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0.x
    • Component/s: GenericTools
    • Labels:

      Description

      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.

        Activity

          People

          • Assignee:
            Unassigned
            Reporter:
            Gabriel Lavoie
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Development