Return-Path: X-Original-To: apmail-struts-issues-archive@minotaur.apache.org Delivered-To: apmail-struts-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 556F4CDB4 for ; Tue, 23 Jul 2013 12:06:50 +0000 (UTC) Received: (qmail 54937 invoked by uid 500); 23 Jul 2013 12:06:49 -0000 Delivered-To: apmail-struts-issues-archive@struts.apache.org Received: (qmail 54884 invoked by uid 500); 23 Jul 2013 12:06:49 -0000 Mailing-List: contact issues-help@struts.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@struts.apache.org Delivered-To: mailing list issues@struts.apache.org Received: (qmail 54874 invoked by uid 99); 23 Jul 2013 12:06:49 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Jul 2013 12:06:49 +0000 Date: Tue, 23 Jul 2013 12:06:49 +0000 (UTC) From: "Lukasz Lenart (JIRA)" To: issues@struts.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (WW-4149) No easy way to have an empty interceptor stack if have default stack MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/WW-4149?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Lukasz Lenart updated WW-4149: ------------------------------ Fix Version/s: 2.3.17 > No easy way to have an empty interceptor stack if have default stack > -------------------------------------------------------------------- > > Key: WW-4149 > URL: https://issues.apache.org/jira/browse/WW-4149 > Project: Struts 2 > Issue Type: Improvement > Components: Core Interceptors > Affects Versions: 2.3.15.1 > Reporter: Jasper Rosenberg > Fix For: 2.3.17 > > > If you have an action that you don't want to have any interceptors, if there is a defaultStack defined, you can't. > My work around was to create an NoOpInterceptor that did nothing, and then declare interceptor stack that just included it to use. > It used to be that you couldn't include an empty interceptor stack at all. That seems to not blow up now, but unfortunately it appears that it is treated as if it doesn't exist, and the defaultStack is used instead. > I think a declared interceptor stack on an action should override the default, even if it is empty. > Could then also provide an "emptyStack" interceptor in struts-default.xml that people could use when they wanted this behavior. -- 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