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
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