From issues-return-32033-archive-asf-public=cust-asf.ponee.io@struts.apache.org Thu Apr 5 09:39:07 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id E553F18064F for ; Thu, 5 Apr 2018 09:39:06 +0200 (CEST) Received: (qmail 58032 invoked by uid 500); 5 Apr 2018 07:39:03 -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 58020 invoked by uid 99); 5 Apr 2018 07:39:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Apr 2018 07:39:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 13ECDC2AC9 for ; Thu, 5 Apr 2018 07:39:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.511 X-Spam-Level: X-Spam-Status: No, score=-109.511 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 5Ma6dsdrO1Rn for ; Thu, 5 Apr 2018 07:39:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 68EA05F19B for ; Thu, 5 Apr 2018 07:39:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id A2662E0117 for ; Thu, 5 Apr 2018 07:39:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 430202561E for ; Thu, 5 Apr 2018 07:39:00 +0000 (UTC) Date: Thu, 5 Apr 2018 07:39:00 +0000 (UTC) From: "Lukasz Lenart (JIRA)" To: issues@struts.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (WW-4930) SMI cannot be diasabled for action-packages found via the convention-plugin 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-4930?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16426578#comment-16426578 ] Lukasz Lenart commented on WW-4930: ----------------------------------- Did you try to leave SMI enabled? It should work well with the Convention plugin. > SMI cannot be diasabled for action-packages found via the convention-plugin > --------------------------------------------------------------------------- > > Key: WW-4930 > URL: https://issues.apache.org/jira/browse/WW-4930 > Project: Struts 2 > Issue Type: Bug > Components: Plugin - Convention > Affects Versions: 2.5.16 > Environment: Windows 10 > Java 1.8 > Reporter: Philipp Heidelbach > Priority: Major > Fix For: 2.6 > > > I'm trying to update Struts 2.3.34 to 2.5.16 and disabling SMI doesn't seem to work. > I debuged XmlConfigurationProvider but in the packageConfig of our package (named default see below) SMI is correctly set to false. Debugging PackageBaseActionConfigBuilder shows that our default-package is used as parent package and in the parentPkg SMI is set to false. The pkgConfig however is alwasy null (line: 1043) and so a new package config is created in which SMI is set to true. > Thus for all these actions methods i get the error that these methods aren't allowed. > If I use @AllowedMethod-annotations it works fine. > Below the beginning of our struts.xml > {code:xml} > > "-//Apache Software Foundation//DTD Struts Configuration 2.5//EN" > "http://struts.apache.org/dtds/struts-2.5.dtd"> > > > > > > > > > > > > > > > > > {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005)