[gatein-issues] [JBoss JIRA] Commented: (GTNPORTAL-1400) RestResource can't get parameter when submit with http post or put method
Minh Hoang TO (JIRA)
jira-events at lists.jboss.org
Wed Aug 11 23:57:49 EDT 2010
[ https://jira.jboss.org/browse/GTNPORTAL-1400?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12544454#action_12544454 ]
Minh Hoang TO commented on GTNPORTAL-1400:
------------------------------------------
Applied patch to branch r3776
> RestResource can't get parameter when submit with http post or put method
> -------------------------------------------------------------------------
>
> Key: GTNPORTAL-1400
> URL: https://jira.jboss.org/browse/GTNPORTAL-1400
> Project: GateIn Portal
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Affects Versions: 3.1.0-GA
> Reporter: Vu Viet Phuong
> Assignee: Vu Viet Phuong
> Fix For: 3.2.0-GA
>
> Attachments: 2010-08-11-GTNPORTAL-1400.patch
>
>
> when i test @Managed, @Impact(ImpactType.IDEMPOTENT_WRITE) which currently used to expose some service's methods, i found some problems:
> - Rest mehods without parameter OR exposed with @Impact(ImpactType.READ) is called as expected
> - Rest methods with parameter AND exposed with @Impact(ImpactType.IDEMPOTENT_WRITE) or @Impact(ImpactType.WRITE) can't be called properly
> That the problem of org.exoplatform.management.data.RestResource class. Currently, this class determine the exposed methods by using method name and their parameters, but now it just can retrieve parameter values from QueryString
> If i expose a method that need POST http method, and parameters is transfered to server in the HttpRequest's InputStream, not in the QueryString , RestResouce can't retrieve the parameter values and the exposed method can't be called
> I've attached the patch to fix this issue
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the gatein-issues
mailing list