<?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>23950</bug_id>
          
          <creation_ts>2013-12-02 12:05:29 +0000</creation_ts>
          <short_desc>New status code &quot;invalid argument&quot;</short_desc>
          <delta_ts>2014-04-30 13:28: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>Linux</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>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>20860</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Andreas Tolfsen">ato</reporter>
          <assigned_to name="Andreas Tolfsen">ato</assigned_to>
          <cc>dburns</cc>
    
    <cc>jgriffin</cc>
    
    <cc>mdas</cc>
    
    <cc>mike</cc>
    
    <cc>simon.m.stewart</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>96957</commentid>
    <comment_count>0</comment_count>
    <who name="Andreas Tolfsen">ato</who>
    <bug_when>2013-12-02 12:05:29 +0000</bug_when>
    <thetext>Because we have commands that receive open-ended arguments there
should be a way for drivers to refuse performing a command because of
invalid or malformed arguments.  I suggest we call such a status code
“invalid argument”.

A good example of when this is needed is the setScreenOrientation
command which receives a string of either “PORTRAIT” or “LANDSCAPE”.
If the user sends something other than these strings the best a driver
can do right now is to pass a non-descriptive WebDriverException/500.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104751</commentid>
    <comment_count>1</comment_count>
    <who name="David Burns :automatedtester">dburns</who>
    <bug_when>2014-04-29 23:01:40 +0000</bug_when>
    <thetext>Landed in https://dvcs.w3.org/hg/webdriver/rev/c01d6518e4c1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104808</commentid>
    <comment_count>2</comment_count>
    <who name="Andreas Tolfsen">ato</who>
    <bug_when>2014-04-30 13:28:56 +0000</bug_when>
    <thetext>\o/</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>