You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Lukasz Lenart (JIRA)" <ji...@apache.org> on 2014/02/07 08:55:19 UTC

[jira] [Commented] (WW-4285) ParametersInterceptor's isWithinLengthLimit method does not detect the devMode's value

    [ https://issues.apache.org/jira/browse/WW-4285?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13894278#comment-13894278 ] 

Lukasz Lenart commented on WW-4285:
-----------------------------------

What you see is just a debug message, lower you log level.

{code}
    private void notifyDeveloper(String message, String... parameters) {
        if (devMode) {
            LOG.warn(message, parameters);
        } else {
            if (LOG.isDebugEnabled()) {
                LOG.debug(message, parameters);
            }
        }
    }
{code}

> ParametersInterceptor's isWithinLengthLimit method does not detect the devMode's value
> --------------------------------------------------------------------------------------
>
>                 Key: WW-4285
>                 URL: https://issues.apache.org/jira/browse/WW-4285
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.3.16
>            Reporter: wangzhenghang
>             Fix For: 2.3.17
>
>
> When the length of parameter name exceeds the paramNameMaxLength, notifyDeveloper method is invoked directly and devMode's value is ignored.
> So, this error log is printed as follow:
> [com.opensymphony.xwork2.interceptor.ParametersInterceptor] [Developer Notification (set struts.devMode to false to disable this message):
> Unexpected Exception caught setting '****' on 'class java.lang.String: 100]
>  



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)