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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.2.3
    • 2.3.1
    • Plugin - JSON
    • 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

            jafl John Lindal
            jafl John Lindal
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: