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

Freemarker template expansion wrong if action includes slashes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.3.15.1
    • 2.3.20
    • Other
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: