struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (WW-4169) Freemarker template expansion wrong if action includes slashes
Date Sun, 06 Apr 2014 19:48:25 GMT

    [ https://issues.apache.org/jira/browse/WW-4169?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13961504#comment-13961504
] 

Hudson commented on WW-4169:
----------------------------

SUCCESS: Integrated in Struts-JDK6-features #41 (See [https://builds.apache.org/job/Struts-JDK6-features/41/])
WW-4169 Solves problem resolving path when action contains slashes (lukaszlenart: rev 272feecfbd9bd69bf500af31541567f254dd0c6d)
* core/src/main/java/org/apache/struts2/views/freemarker/FreemarkerResult.java
* core/src/test/java/org/apache/struts2/views/freemarker/FreeMarkerResultTest.java


> 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
>            Assignee: Lukasz Lenart
>            Priority: Minor
>              Labels: freemarker, result
>             Fix For: 2.3.17
>
>         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 was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message