struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jasper Rosenberg (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (WW-4169) Freemarker template expansion wrong if action includes slashes
Date Mon, 05 Aug 2013 16:18:50 GMT

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

Jasper Rosenberg updated WW-4169:
---------------------------------

    Attachment: FreemarkerResult.java.patch

Realized someone might be relying on member variable location being original location, so
use new local variable to be explicit.  Last patch version, I swear! :)
                
> Freemarker template expansion wrong if action includes slashes
> --------------------------------------------------------------
>
>                 Key: WW-4169
>                 URL: https://issues.apache.org/jira/browse/WW-4169
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Other
>    Affects Versions: 2.3.15.1
>            Reporter: Jasper Rosenberg
>            Priority: Minor
>              Labels: freemarker, result
>         Attachments: FreemarkerResult.java.patch
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message