ParametersInterceptor - logging values that could not be applied to action
properties
-------------------------------------------------------------------------------------
Key: WW-1717
URL: https://issues.apache.org/struts/browse/WW-1717
Project: Struts 2
Issue Type: Improvement
Affects Versions: 2.0.5
Reporter: Dariusz Wojtas
When I have some property that was kicked out by ParametersInterceptor as
invalid, then it prints error message like this:
19:55:00,984 ERROR - ParametersInterceptor - ParametersInterceptor -
[setParameters]: Unexpected Exception catched: Error setting expression
'myProp' with value '[Ljava.lang.String;@6d4f30'
Can this be modified to support logging the exact values being skipped?
Example:
a) if the array contains single value: Error setting expression 'myProp'
with value '<value>'
a) array of size > 1: Error setting expression 'myProp' with value ['<1st
value>', ... ]
If this is a security reason not to print these values, then maybe it could be
configurable via struts.properties, by default do not log exact values.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.