[ https://issues.apache.org/jira/browse/WW-5267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17697414#comment-17697414 ]
Kusal Kithul-Godage commented on WW-5267: ----------------------------------------- As per [this comment|https://github.com/apache/struts/pull/663#issuecomment-1457617483], the solution to this should ideally not involve generating the ActionContext for requests that have explicitly been excluded by `struts.action.excludePattern` as it violates the expectation of `struts.action.excludePattern`, even if it is implemented as an opt-in option. > Allow SiteMesh to run on requests that are not Struts actions, but SiteMesh > requires ActionContext > -------------------------------------------------------------------------------------------------- > > Key: WW-5267 > URL: https://issues.apache.org/jira/browse/WW-5267 > Project: Struts 2 > Issue Type: Improvement > Components: Core > Reporter: Kusal Kithul-Godage > Priority: Minor > Fix For: 6.2.0 > > Time Spent: 2h 10m > Remaining Estimate: 0h > > There are scenarios where you may want to exclude a request from Struts > filtering/processing using `struts.action.excludePattern` as it is not a > Struts action and/or having Struts consume/parse the multipart is undesirable. > However, you may still want that request to undergo filtering such as > SiteMesh, which requires the ActionContext to be present. -- This message was sent by Atlassian Jira (v8.20.10#820010)