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 2006/12/08 15:42:58 UTC

[jira] Created: (WW-1551) Ignore parameters that start with "dojo"

Ignore parameters that start with "dojo"
----------------------------------------

                 Key: WW-1551
                 URL: http://issues.apache.org/struts/browse/WW-1551
             Project: Struts 2
          Issue Type: Bug
    Affects Versions: 2.0.1
            Reporter: Musachy Barroso
            Priority: Minor


To prevent browser caching, Dojo adds a parameter "dojo.preventCache"
with a random value to the request, this results in an exception like:

2006-12-07 09:54:07,916 ERROR
(com.opensymphony.xwork2.interceptor.ParametersInterceptor:191) -
ParametersInterceptor - [setParameters]: Unexpected Exception catched:
Error setting expression 'dojo.preventCache' with value
'[Ljava.lang.String;@2130c2' 

Another one is "dojo.transport".

It would be nice to have some kind of filter for ParameterInterceptor, taking regex.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Resolved: (WW-1551) Ignore parameters that start with "dojo"

Posted by "Don Brown (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/struts/browse/WW-1551?page=all ]

Don Brown resolved WW-1551.
---------------------------

    Fix Version/s: 2.0.3
                       (was: 2.0.2)
       Resolution: Fixed
         Assignee: Don Brown

Patch applied, however, it was against XWork, so it won't make it into Struts 2.0.2 since it depends on the already-released XWork 2.0-RC1.  For future patches, please be careful to follow the Struts coding style and watch extra spaces and line endings that can make the patch harder to read.  Thanks for the feature idea and patch!

> Ignore parameters that start with "dojo"
> ----------------------------------------
>
>                 Key: WW-1551
>                 URL: http://issues.apache.org/struts/browse/WW-1551
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.0.1
>            Reporter: Musachy Barroso
>         Assigned To: Don Brown
>            Priority: Minor
>             Fix For: 2.0.3
>
>         Attachments: WW-1551.patch
>
>
> To prevent browser caching, Dojo adds a parameter "dojo.preventCache"
> with a random value to the request, this results in an exception like:
> 2006-12-07 09:54:07,916 ERROR
> (com.opensymphony.xwork2.interceptor.ParametersInterceptor:191) -
> ParametersInterceptor - [setParameters]: Unexpected Exception catched:
> Error setting expression 'dojo.preventCache' with value
> '[Ljava.lang.String;@2130c2' 
> Another one is "dojo.transport".
> It would be nice to have some kind of filter for ParameterInterceptor, taking regex.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Resolved: (WW-1551) Ignore parameters that start with "dojo"

Posted by "Don Brown (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/struts/browse/WW-1551?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Don Brown resolved WW-1551.
---------------------------

    Resolution: Fixed

> Ignore parameters that start with "dojo"
> ----------------------------------------
>
>                 Key: WW-1551
>                 URL: http://issues.apache.org/struts/browse/WW-1551
>             Project: Struts 2
>          Issue Type: Improvement
>    Affects Versions: 2.0.1
>            Reporter: Musachy Barroso
>         Assigned To: Don Brown
>            Priority: Minor
>             Fix For: 2.0.3
>
>         Attachments: WW-1551.patch
>
>
> To prevent browser caching, Dojo adds a parameter "dojo.preventCache"
> with a random value to the request, this results in an exception like:
> 2006-12-07 09:54:07,916 ERROR
> (com.opensymphony.xwork2.interceptor.ParametersInterceptor:191) -
> ParametersInterceptor - [setParameters]: Unexpected Exception catched:
> Error setting expression 'dojo.preventCache' with value
> '[Ljava.lang.String;@2130c2' 
> Another one is "dojo.transport".
> It would be nice to have some kind of filter for ParameterInterceptor, taking regex.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (WW-1551) Ignore parameters that start with "dojo"

Posted by "Ted Husted (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/struts/browse/WW-1551?page=all ]

Ted Husted updated WW-1551:
---------------------------

    Fix Version/s: 2.0.2
                       (was: 2.0.3)

> Ignore parameters that start with "dojo"
> ----------------------------------------
>
>                 Key: WW-1551
>                 URL: http://issues.apache.org/struts/browse/WW-1551
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.0.1
>            Reporter: Musachy Barroso
>            Priority: Minor
>             Fix For: 2.0.2
>
>         Attachments: WW-1551.patch
>
>
> To prevent browser caching, Dojo adds a parameter "dojo.preventCache"
> with a random value to the request, this results in an exception like:
> 2006-12-07 09:54:07,916 ERROR
> (com.opensymphony.xwork2.interceptor.ParametersInterceptor:191) -
> ParametersInterceptor - [setParameters]: Unexpected Exception catched:
> Error setting expression 'dojo.preventCache' with value
> '[Ljava.lang.String;@2130c2' 
> Another one is "dojo.transport".
> It would be nice to have some kind of filter for ParameterInterceptor, taking regex.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (WW-1551) Ignore parameters that start with "dojo"

Posted by "Musachy Barroso (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/struts/browse/WW-1551?page=all ]

Musachy Barroso updated WW-1551:
--------------------------------

    Attachment: WW-1551.patch

* added "excludeParams" property to ParametersInterceptor to take a comma-delimited list of regexes of parameters to be excluded

> Ignore parameters that start with "dojo"
> ----------------------------------------
>
>                 Key: WW-1551
>                 URL: http://issues.apache.org/struts/browse/WW-1551
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.0.1
>            Reporter: Musachy Barroso
>            Priority: Minor
>             Fix For: 2.0.3
>
>         Attachments: WW-1551.patch
>
>
> To prevent browser caching, Dojo adds a parameter "dojo.preventCache"
> with a random value to the request, this results in an exception like:
> 2006-12-07 09:54:07,916 ERROR
> (com.opensymphony.xwork2.interceptor.ParametersInterceptor:191) -
> ParametersInterceptor - [setParameters]: Unexpected Exception catched:
> Error setting expression 'dojo.preventCache' with value
> '[Ljava.lang.String;@2130c2' 
> Another one is "dojo.transport".
> It would be nice to have some kind of filter for ParameterInterceptor, taking regex.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (WW-1551) Ignore parameters that start with "dojo"

Posted by "Don Brown (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/struts/browse/WW-1551?page=all ]

Don Brown updated WW-1551:
--------------------------

    Issue Type: Improvement  (was: Bug)

> Ignore parameters that start with "dojo"
> ----------------------------------------
>
>                 Key: WW-1551
>                 URL: http://issues.apache.org/struts/browse/WW-1551
>             Project: Struts 2
>          Issue Type: Improvement
>    Affects Versions: 2.0.1
>            Reporter: Musachy Barroso
>         Assigned To: Don Brown
>            Priority: Minor
>             Fix For: 2.0.3
>
>         Attachments: WW-1551.patch
>
>
> To prevent browser caching, Dojo adds a parameter "dojo.preventCache"
> with a random value to the request, this results in an exception like:
> 2006-12-07 09:54:07,916 ERROR
> (com.opensymphony.xwork2.interceptor.ParametersInterceptor:191) -
> ParametersInterceptor - [setParameters]: Unexpected Exception catched:
> Error setting expression 'dojo.preventCache' with value
> '[Ljava.lang.String;@2130c2' 
> Another one is "dojo.transport".
> It would be nice to have some kind of filter for ParameterInterceptor, taking regex.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (WW-1551) Ignore parameters that start with "dojo"

Posted by "Ted Husted (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/struts/browse/WW-1551?page=all ]

Ted Husted updated WW-1551:
---------------------------

    Fix Version/s: 2.0.3

> Ignore parameters that start with "dojo"
> ----------------------------------------
>
>                 Key: WW-1551
>                 URL: http://issues.apache.org/struts/browse/WW-1551
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.0.1
>            Reporter: Musachy Barroso
>            Priority: Minor
>             Fix For: 2.0.3
>
>
> To prevent browser caching, Dojo adds a parameter "dojo.preventCache"
> with a random value to the request, this results in an exception like:
> 2006-12-07 09:54:07,916 ERROR
> (com.opensymphony.xwork2.interceptor.ParametersInterceptor:191) -
> ParametersInterceptor - [setParameters]: Unexpected Exception catched:
> Error setting expression 'dojo.preventCache' with value
> '[Ljava.lang.String;@2130c2' 
> Another one is "dojo.transport".
> It would be nice to have some kind of filter for ParameterInterceptor, taking regex.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (WW-1551) Ignore parameters that start with "dojo"

Posted by "Ted Husted (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/struts/browse/WW-1551?page=all ]

Ted Husted updated WW-1551:
---------------------------

    Flags: [Patch]

> Ignore parameters that start with "dojo"
> ----------------------------------------
>
>                 Key: WW-1551
>                 URL: http://issues.apache.org/struts/browse/WW-1551
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.0.1
>            Reporter: Musachy Barroso
>            Priority: Minor
>             Fix For: 2.0.3
>
>         Attachments: WW-1551.patch
>
>
> To prevent browser caching, Dojo adds a parameter "dojo.preventCache"
> with a random value to the request, this results in an exception like:
> 2006-12-07 09:54:07,916 ERROR
> (com.opensymphony.xwork2.interceptor.ParametersInterceptor:191) -
> ParametersInterceptor - [setParameters]: Unexpected Exception catched:
> Error setting expression 'dojo.preventCache' with value
> '[Ljava.lang.String;@2130c2' 
> Another one is "dojo.transport".
> It would be nice to have some kind of filter for ParameterInterceptor, taking regex.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Reopened: (WW-1551) Ignore parameters that start with "dojo"

Posted by "Don Brown (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/struts/browse/WW-1551?page=all ]

Don Brown reopened WW-1551:
---------------------------

             
Actually, I'm gonna reopen as a reminder, once Struts trunk uses the latest xwork, we need to add the dojo parameter exclusion setting to struts-default.xml. 

> Ignore parameters that start with "dojo"
> ----------------------------------------
>
>                 Key: WW-1551
>                 URL: http://issues.apache.org/struts/browse/WW-1551
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.0.1
>            Reporter: Musachy Barroso
>         Assigned To: Don Brown
>            Priority: Minor
>             Fix For: 2.0.3
>
>         Attachments: WW-1551.patch
>
>
> To prevent browser caching, Dojo adds a parameter "dojo.preventCache"
> with a random value to the request, this results in an exception like:
> 2006-12-07 09:54:07,916 ERROR
> (com.opensymphony.xwork2.interceptor.ParametersInterceptor:191) -
> ParametersInterceptor - [setParameters]: Unexpected Exception catched:
> Error setting expression 'dojo.preventCache' with value
> '[Ljava.lang.String;@2130c2' 
> Another one is "dojo.transport".
> It would be nice to have some kind of filter for ParameterInterceptor, taking regex.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira