Uploaded image for project: 'OASIS Open Data Protocol (OData) TC'
  1. OASIS Open Data Protocol (OData) TC
  2. ODATA-462

Support for HTTP verb tunnelling is essential because client libraries may not support PATCH

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: V4.0_WD01
    • Fix Version/s: V4.0_WD01
    • Component/s: Protocol
    • Labels:
      None
    • Proposal:
      Hide

      Require services to support HTTP verbs other than GET and POST to be tunnelled inside a POST using the X-HTTP-Method header.

      Show
      Require services to support HTTP verbs other than GET and POST to be tunnelled inside a POST using the X-HTTP-Method header.

      Description

      Some client libraries (e.g. HttpURLConnection in JDK 1.7) don't support PATCH, e.g. see this stack trace:

      java.net.ProtocolException: Invalid HTTP method: PATCH
      at java.net.HttpURLConnection.setRequestMethod(HttpURLConnection.java:428)

      To ensure maximum interoperability with clients (and not force clients to use PUT rather than PATCH), we should require OData services to support HTTP verb tunnelling.

      See X-HTTP-Method in http://msdn.microsoft.com/en-us/library/dd541471.aspx

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              evan.ireland.2 Evan Ireland
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: