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 31C9B10285 for ; Sat, 7 Sep 2013 13:27:55 +0000 (UTC) Received: (qmail 1749 invoked by uid 500); 7 Sep 2013 13:27:54 -0000 Delivered-To: apmail-struts-issues-archive@struts.apache.org Received: (qmail 1628 invoked by uid 500); 7 Sep 2013 13:27:54 -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 1114 invoked by uid 99); 7 Sep 2013 13:27:52 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 07 Sep 2013 13:27:52 +0000 Date: Sat, 7 Sep 2013 13:27:52 +0000 (UTC) From: "ASF subversion and git services (JIRA)" To: issues@struts.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (WW-4193) OGNL WARN msg in log when user enters invalid data 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-4193?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13761021#comment-13761021 ] ASF subversion and git services commented on WW-4193: ----------------------------------------------------- Commit 1520763 from [~rgielen] in branch 'struts2/trunk' [ https://svn.apache.org/r1520763 ] WW-4193 - Patch by Christoph Nenning With this patch it is checked if devMode is active and if logMissingProperties is enabled before the exception is logged - refactored shouldLogNoSuchPropertyWarning() to shouldLogMissingPropertyWarning() and using it to handle MethodFailedExceptions. - updated void handleOgnlException(String expr, Object value, boolean throwExceptionOnFailure, OgnlException e) to use it. > OGNL WARN msg in log when user enters invalid data > --------------------------------------------------- > > Key: WW-4193 > URL: https://issues.apache.org/jira/browse/WW-4193 > Project: Struts 2 > Issue Type: Bug > Components: Expression Language, Value Stack > Affects Versions: 2.3.15.1 > Reporter: Christoph Nenning > Assignee: Rene Gielen > Priority: Minor > Fix For: 2.3.16 > > Attachments: struts2.patch > > > When a user enters a invalid value, the framework logs a WARN msg with stacktrace. Even when dev mode is disabled. > For example: > - an Action with an int as member > - a form with a text field for that int > - user enters a string > The framework tries to find a setter for that member (which is successful) and tries to set the value (which fails because the setter has wrong parameter type) > Then a stracktrace is logged as WARN. > It is a valid use case that users enter invalid data and no stracktrace should be logged (at least not when dev mode is disabled). -- 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