[ 
https://issues.apache.org/jira/browse/SHINDIG-303?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12599357#action_12599357
 ] 

Cassie Doll commented on SHINDIG-303:
-------------------------------------

This patch had some weird issues which I fixed up (I feel like maybe you forgot 
some things in the patch?):

1. AbstractSocialEntityCollectionAdapter was still referencing the Format enum 
which was moved. I changed the reference and had it get the format value from 
the new class.
2. I also changed the JSONWriter to use the new class so that all of the logic 
is just in that one valid request filter. 
2. ValidRequestTest overrode the checkForBadResponse method with exactly the 
same content. I deleted this override.


I do have one question though. If I change the JSONFilter and the adapters to 
use request.getAttribute("format") to access the attribute that the 
ValidRequestFormat sets all of the code still works. However, how is abdera 
determining the order in which the filters run? It seems like the only way 
accessing the attribute would work is if the order went:

ValidRequestFilter -> Adapter -> JSONFilter

Is there some code I am missing that is telling it to use this format? Or am I 
just crazy? 
Thanks. 

> move param validity checking to an abdera filter.
> -------------------------------------------------
>
>                 Key: SHINDIG-303
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-303
>             Project: Shindig
>          Issue Type: Improvement
>          Components: RESTful API (Java)
>            Reporter: David Primmer
>         Attachments: shindig-303_move_param_checking_to_filter.patch
>
>


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

Reply via email to