You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "John Lindal (JIRA)" <ji...@apache.org> on 2010/10/08 22:44:31 UTC

[jira] Created: (WW-3514) Correct support for include/exclude parameters

Correct support for include/exclude parameters
----------------------------------------------

                 Key: WW-3514
                 URL: https://issues.apache.org/jira/browse/WW-3514
             Project: Struts 2
          Issue Type: Improvement
          Components: Plugin - JSON
    Affects Versions: 2.2.1
            Reporter: John Lindal


JSONResult.setIncludeProperties() got the algorithm right, but using regular expressions to match OGNL expressions is *painful*.  The attached patches add support for wildcard patterns to JSONResult and JSONInterceptor, and update JSONInterceptor.setIncludeProperties() to use the correct algorithm.

The patches also add include/exclude support to JSONCleaner, to support filtering on the input data.  (Configuration for JSONInterceptor and JSONResult only handle output filtering.)

There are also a couple of code clean-up changes, to eliminate code duplication.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WW-3514) Correct support for include/exclude parameters

Posted by "John Lindal (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WW-3514?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

John Lindal updated WW-3514:
----------------------------

    Attachment: WildcardUtil.java
                patch4

> Correct support for include/exclude parameters
> ----------------------------------------------
>
>                 Key: WW-3514
>                 URL: https://issues.apache.org/jira/browse/WW-3514
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Plugin - JSON
>    Affects Versions: 2.2.1
>            Reporter: John Lindal
>         Attachments: patch1, patch2, patch3, patch4, WildcardUtil.java
>
>
> JSONResult.setIncludeProperties() got the algorithm right, but using regular expressions to match OGNL expressions is *painful*.  The attached patches add support for wildcard patterns to JSONResult and JSONInterceptor, and update JSONInterceptor.setIncludeProperties() to use the correct algorithm.
> The patches also add include/exclude support to JSONCleaner, to support filtering on the input data.  (Configuration for JSONInterceptor and JSONResult only handle output filtering.)
> There are also a couple of code clean-up changes, to eliminate code duplication.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WW-3514) Correct support for include/exclude parameters

Posted by "John Lindal (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WW-3514?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

John Lindal updated WW-3514:
----------------------------

    Attachment: patch3
                patch2
                patch1

> Correct support for include/exclude parameters
> ----------------------------------------------
>
>                 Key: WW-3514
>                 URL: https://issues.apache.org/jira/browse/WW-3514
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Plugin - JSON
>    Affects Versions: 2.2.1
>            Reporter: John Lindal
>         Attachments: patch1, patch2, patch3, patch4, WildcardUtil.java
>
>
> JSONResult.setIncludeProperties() got the algorithm right, but using regular expressions to match OGNL expressions is *painful*.  The attached patches add support for wildcard patterns to JSONResult and JSONInterceptor, and update JSONInterceptor.setIncludeProperties() to use the correct algorithm.
> The patches also add include/exclude support to JSONCleaner, to support filtering on the input data.  (Configuration for JSONInterceptor and JSONResult only handle output filtering.)
> There are also a couple of code clean-up changes, to eliminate code duplication.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.