[
https://issues.apache.org/struts/browse/STR-3021?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Henri Yandell resolved STR-3021.
--------------------------------
Resolution: Fixed
svn ci -m "Applying patch from STR-3021. Thanks to Thomas Wilhelm for reporting
the bug wherein exceptions thrown in tiles-included JSPs cause includes to
happen twice. The change was to not consider an InvocationTargetException as a
debug item, but as an exception whose contents need to be rethrown. " tiles
Sending tiles/src/main/java/org/apache/struts/tiles/TilesUtilImpl.java
Transmitting file data .
Committed revision 529384.
> Tiles insert is evaluated twice if JSP error occures
> ----------------------------------------------------
>
> Key: STR-3021
> URL: https://issues.apache.org/struts/browse/STR-3021
> Project: Struts 1
> Issue Type: Bug
> Components: Tiles
> Affects Versions: 1.3.5
> Environment: Tomcat 5.0
> Reporter: Thomas Wilhelm
> Fix For: 1.3.9, 1.4.0
>
> Attachments: STR-3021.patch
>
>
> If an Exception is thrown in a tiles-included JSP the surrounding
> tiles-insert is processes twice. This most presumably due to a bug in
> TilesUtilImpl#doInclude(String uri, PageContext pageContext, boolean flush)
> where the InvocationTargetException is handled incorrectly. Every exception
> thrown from the executed inlcude-method will be throw wrapped into a
> InvocationTargetException so that include-method as well as
> pageContext.include(uri) is executed everytime a JSP-Error occures during an
> inlcude.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.