Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-4169

Freemarker template expansion wrong if action includes slashes

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.3.15.1
    • Fix Version/s: 2.3.20
    • Component/s: Other
    • Labels:
    • Flags:
      Patch

      Description

      For relative freemarker template locations, FreemarkerResult uses the current URL to figure out the path. This is assumes that the action name doesn't include any "/" characters. If it does then part of the action name ends up in the template path. Instead, it should use the namespace directly to build the template path which removes any ambiguity. Please see the attached patch.

        Attachments

        1. FreemarkerResult.java.patch
          2 kB
          Jasper Rosenberg

          Activity

            People

            • Assignee:
              lukaszlenart Lukasz Lenart
              Reporter:
              perfnorm Jasper Rosenberg
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: