<?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>28780</bug_id>
          
          <creation_ts>2015-06-08 14:37:18 +0000</creation_ts>
          <short_desc>3.7 Handling Errors - Should first JSON field be called &quot;status&quot; and not &quot;error&quot;?</short_desc>
          <delta_ts>2015-06-09 13:39:56 +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>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>20860</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Paul G">paulgrime</reporter>
          <assigned_to name="Browser Testing and Tools WG">public-browser-tools-testing</assigned_to>
          <cc>ato</cc>
    
    <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>120826</commentid>
    <comment_count>0</comment_count>
    <who name="Paul G">paulgrime</who>
    <bug_when>2015-06-08 14:37:18 +0000</bug_when>
    <thetext>The following sentence uses &quot;error&quot; twice for JSON field names. Is this correct? Should one be &quot;status&quot;?

&quot;This JSON body has two fields: error, containing a string indicating the error type and error containing an implementation-defined string containing a human readable description of the kind of error that occured.&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>120827</commentid>
    <comment_count>1</comment_count>
    <who name="Paul G">paulgrime</who>
    <bug_when>2015-06-08 14:38:24 +0000</bug_when>
    <thetext>https://w3c.github.io/webdriver/webdriver-spec.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>120828</commentid>
    <comment_count>2</comment_count>
    <who name="Andreas Tolfsen">ato</who>
    <bug_when>2015-06-08 15:01:17 +0000</bug_when>
    <thetext>Thanks for noticing this.  The body sent back as part of an error response should have three fields, of which two are implementation-defined (meaning they can be empty strings):

    {
      &quot;error&quot;: &quot;no such element&quot;,
      &quot;message&quot;: &quot;Could not locate element by locator: …&quot;,
      &quot;stacktrace&quot;: &quot;&quot;
    }


I’ve opened https://github.com/w3c/webdriver/pull/87 to reflect this.

There are more commands that haven’t yet been changed to use the new dispatch architecture that still use the term “status”, but we can fix these as we redefine them.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>120838</commentid>
    <comment_count>3</comment_count>
    <who name="David Burns :automatedtester">dburns</who>
    <bug_when>2015-06-09 13:39:56 +0000</bug_when>
    <thetext>landed in https://github.com/w3c/webdriver/commit/1f55f3ec285daf2665f28305c1e24595a4eb040e</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>