This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 24976 - Section 2.6.1 states that every request and response should have a Json payload; is that what we want?
Summary: Section 2.6.1 states that every request and response should have a Json paylo...
Status: RESOLVED FIXED
Alias: None
Product: Browser Test/Tools WG
Classification: Unclassified
Component: WebDriver (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Browser Testing and Tools WG
QA Contact: Browser Testing and Tools WG
URL: https://dvcs.w3.org/hg/webdriver/raw-...
Whiteboard:
Keywords:
Depends on:
Blocks: 20860
  Show dependency treegraph
 
Reported: 2014-03-08 17:02 UTC by Marc Fisher
Modified: 2015-10-26 01:19 UTC (History)
2 users (show)

See Also:


Attachments

Description Marc Fisher 2014-03-08 17:02:52 UTC
Requiring a Json payload in every response would be feasible, but current drivers, including Selenium Server Standalone, often return empty responses for successful operations that don't return values, as well as using error http status codes with plain text responses for certain types of problems. If we want to support this, we should document it (I don't have a strong opinion either way, but do slightly lean towards having the remote end return HTTP status 200 with a Json payload for every request).

Since the wire protocol uses GET and DELETE requests for some operations, it is not possible for every request to contain a Json payload. We need to make this clear.
Comment 1 David Burns :automatedtester 2015-10-26 01:19:41 UTC
this has been corrected in the spec