<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>24976</bug_id>
          
          <creation_ts>2014-03-08 17:02:52 +0000</creation_ts>
          <short_desc>Section 2.6.1 states that every request and response should have a Json payload; is that what we want?</short_desc>
          <delta_ts>2015-10-26 01:19:41 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Browser Test/Tools WG</product>
          <component>WebDriver</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>https://dvcs.w3.org/hg/webdriver/raw-file/ac1cadc32661/webdriver-spec.html#json-encoding-of-commands</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>20860</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Marc Fisher">fisherii</reporter>
          <assigned_to name="Browser Testing and Tools WG">public-browser-tools-testing</assigned_to>
          <cc>dburns</cc>
    
    <cc>mike</cc>
          
          <qa_contact name="Browser Testing and Tools WG">public-browser-tools-testing</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>102105</commentid>
    <comment_count>0</comment_count>
    <who name="Marc Fisher">fisherii</who>
    <bug_when>2014-03-08 17:02:52 +0000</bug_when>
    <thetext>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&apos;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&apos;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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>123907</commentid>
    <comment_count>1</comment_count>
    <who name="David Burns :automatedtester">dburns</who>
    <bug_when>2015-10-26 01:19:41 +0000</bug_when>
    <thetext>this has been corrected in the spec</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>