[
https://issues.apache.org/jira/browse/WW-3635?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
John Lindal resolved WW-3635.
-----------------------------
Resolution: Fixed
Fix Version/s: (was: 2.2.x)
2.3
> JSON-RPC should return content-type: application/json
> -----------------------------------------------------
>
> Key: WW-3635
> URL: https://issues.apache.org/jira/browse/WW-3635
> Project: Struts 2
> Issue Type: Bug
> Components: Plugin - JSON
> Affects Versions: 2.2.3
> Reporter: John Lindal
> Assignee: John Lindal
> Priority: Minor
> Fix For: 2.3
>
>
> application/json-rpc is a valid return type, but the plugin isn't
> implementing JSON-RPC 2.0 correctly:
> http://groups.google.com/group/json-rpc/web/json-rpc-2-0
> http://groups.google.com/group/json-rpc/web/json-rpc-over-http
> Specifically, the json plugin doesn't return a jsonrpc element with value
> "2.0" and doesn't use the standard error codes.
> Adding the jsonrpc element is easy, but changing the errors codes will break
> backward compatibility.
> So it's cleaner to switch the return type to application/json
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira