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 45C4C1065E for ; Wed, 5 Jun 2013 22:30:22 +0000 (UTC) Received: (qmail 54495 invoked by uid 500); 5 Jun 2013 22:30:21 -0000 Delivered-To: apmail-struts-issues-archive@struts.apache.org Received: (qmail 54444 invoked by uid 500); 5 Jun 2013 22:30:21 -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 54382 invoked by uid 99); 5 Jun 2013 22:30:21 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Jun 2013 22:30:21 +0000 Date: Wed, 5 Jun 2013 22:30:21 +0000 (UTC) From: "Johno Crawford (JIRA)" To: issues@struts.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (WW-4094) struts.allowed.action.names inconsistency 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-4094?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13676435#comment-13676435 ] Johno Crawford commented on WW-4094: ------------------------------------ We are observing the same misbehaviour in cleanupActionName. 2013-06-05 20:20:33,881 WARN [http-8080-exec-5] (org.apache.struts2.dispatcher.mapper.DefaultActionMapper) Action [logout_ok] do not match allowed action names pattern [[a-z]*[A-Z]*[0-9]*[.\-_!/]*], cleaning it up! [userId=1 url=/account/logout_ok referer=null ip=127.0.0.1 parameters=[token:7f4a0dfce0]] > struts.allowed.action.names inconsistency > ----------------------------------------- > > Key: WW-4094 > URL: https://issues.apache.org/jira/browse/WW-4094 > Project: Struts 2 > Issue Type: Bug > Affects Versions: 2.3.14.3 > Reporter: Andreas Sachs > Priority: Minor > > I think there is a inconsistency in DefaultActionMapper.cleanupActionName > According to http://struts.apache.org/development/2.x/docs/s2-015.html struts.allowed.action.names defines a regex the action name must match. > The default regex is: [a-z]*[A-Z]*[0-9]*[.\-_!/]* > I have an action with the name "core_blz" > This action name does not match the regex (underscore is not at the end)(maybe the default value should be changed). > DefaultActionMapper reports Action [#0] do not match allowed action names pattern [#1], cleaning it up! > But the cleaned action name is still core_blz. > If this function is only to remove suspicious characters, then the warning should not be displayed. -- 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