Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-3635

JSON-RPC should return content-type: application/json

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.2.3
    • Fix Version/s: 2.3.1
    • Component/s: Plugin - JSON
    • Labels:
      None

      Description

      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

        Attachments

          Activity

            People

            • Assignee:
              jafl John Lindal
              Reporter:
              jafl John Lindal

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment