You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Musachy Barroso (JIRA)" <ji...@apache.org> on 2008/06/21 15:30:05 UTC
[jira] Created: (WW-2688) Ignore parameters that start with
'struts.'
Ignore parameters that start with 'struts.'
-------------------------------------------
Key: WW-2688
URL: https://issues.apache.org/struts/browse/WW-2688
Project: Struts 2
Issue Type: Improvement
Affects Versions: 2.1.3
Reporter: Musachy Barroso
Fix For: 2.1.3
Parameters used internally by struts, like "struts.enableJSONValidation" should be ignored by the 'params' interceptor, so no exception/warn is logged. A new regular expression will be added to that interceptor:
^struts\..*
as well as:
dojo\..*
which is already there in some interceptor stacks.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (WW-2688) Ignore parameters that start with
'struts.'
Posted by "Musachy Barroso (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/struts/browse/WW-2688?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Musachy Barroso resolved WW-2688.
---------------------------------
Resolution: Fixed
Documentation added to the params interceptor page: http://cwiki.apache.org/confluence/display/WW/Parameters+Interceptor
> Ignore parameters that start with 'struts.'
> -------------------------------------------
>
> Key: WW-2688
> URL: https://issues.apache.org/struts/browse/WW-2688
> Project: Struts 2
> Issue Type: Improvement
> Affects Versions: 2.1.3
> Reporter: Musachy Barroso
> Fix For: 2.1.3
>
>
> Parameters used internally by struts, like "struts.enableJSONValidation" should be ignored by the 'params' interceptor, so no exception/warn is logged. A new regular expression will be added to that interceptor:
> ^struts\..*
> as well as:
> dojo\..*
> which is already there in some interceptor stacks.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (WW-2688) Ignore parameters that start with
'struts.'
Posted by "Martin Gainty (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/struts/browse/WW-2688?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45700#action_45700 ]
Martin Gainty commented on WW-2688:
-----------------------------------
this is still a problem with struts2-showcase-2.1.2 example.. here is the output from TOMCAT
expr: struts.enableJSONValidation val: [Ljava.lang.String;@eb9f58 context: ognl.
OgnlContext@21989cef root:[org.apache.struts2.showcase.ajax.AjaxTestAction@1e5ed
7b, com.opensymphony.xwork2.DefaultTextProvider@a8e2b8] value: [Ljava.lang.Strin
g;@eb9f58
[ERROR] ParametersInterceptor - ParametersInterceptor - [setParameters]: Unexpec
ted Exception caught setting 'struts.enableJSONValidation' on 'class org.apache.
struts2.showcase.ajax.AjaxTestAction: Error setting expression 'struts.enableJSO
NValidation' with value '[Ljava.lang.String;@eb9f58'
[WARN] OgnlValueStack - Could not find property [org.apache.catalina.jsp_file]
it would be a great idea not to use OGNL to reference this parameter but as a startup paramater
for Struts in web.xml:
<filter>
<filter-name>struts</filter-name>
<filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
<init-param>
<param-name>struts.enableJSONValidation</param-name>
<param-value>true</param-value>
</init-param>
<init-param>
<param-name>actionPackages</param-name>
<param-value>org.apache.struts2.showcase.person</param-value>
</init-param>
</filter>
(BTW the actionPackages parameter works for actionPackages so the suggestion for struts.enableJSONValidation would work as well)
Can we try this for org.apache.catalina.jsp_file?
Can we try this for template?
Thanks
Martin
> Ignore parameters that start with 'struts.'
> -------------------------------------------
>
> Key: WW-2688
> URL: https://issues.apache.org/struts/browse/WW-2688
> Project: Struts 2
> Issue Type: Improvement
> Affects Versions: 2.1.3
> Reporter: Musachy Barroso
> Fix For: 2.1.3
>
>
> Parameters used internally by struts, like "struts.enableJSONValidation" should be ignored by the 'params' interceptor, so no exception/warn is logged. A new regular expression will be added to that interceptor:
> ^struts\..*
> as well as:
> dojo\..*
> which is already there in some interceptor stacks.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.