Uploaded image for project: 'Velocity Tools'
  1. Velocity Tools
  2. VELTOOLS-138

StrutsLinkTool breaks paths containing a query string

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 2.0
    • None
    • GenericTools

    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.

      Attachments

        Activity

          People

            cbrisson Claude Brisson
            glavoie84 Gabriel Lavoie
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: