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

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>60566</bug_id>
          
          <creation_ts>2011-05-10 11:36:08 -0700</creation_ts>
          <short_desc>[Qt] xmlhttprequest layout tests failed on content-length</short_desc>
          <delta_ts>2011-06-25 03:03:20 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Platform</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>62221</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>LayoutTestFailure, Qt, QtTriaged</keywords>
          <priority>P3</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>62929</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="qi">qi.2.zhang</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>benjamin</cc>
    
    <cc>laszlo.gombos</cc>
    
    <cc>robert</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>401377</commentid>
    <comment_count>0</comment_count>
    <who name="qi">qi.2.zhang</who>
    <bug_when>2011-05-10 11:36:08 -0700</bug_when>
    <thetext>We have couple LayoutTests on Skipped because of the content-length didn&apos;t set. The root reason is qt didn&apos;t provide API.

http/tests/xmlhttprequest/workers/methods-async.html
http/tests/xmlhttprequest/workers/methods.html
http/tests/xmlhttprequest/workers/shared-worker-methods-async.html
http/tests/xmlhttprequest/workers/shared-worker-methods.html
http/tests/xmlhttprequest/methods.html
http/tests/xmlhttprequest/methods-async.html

(also, see QTBUG-19179)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>401381</commentid>
    <comment_count>1</comment_count>
    <who name="qi">qi.2.zhang</who>
    <bug_when>2011-05-10 11:38:43 -0700</bug_when>
    <thetext>put the test contents here, to make easy understand what is doing:

(currently, only &quot;put&quot; and &quot;post&quot; content-length works)

    req = new XMLHttpRequest;
    req.open(&quot;GET&quot;, &quot;methods.cgi&quot;, false);
    req.send(&quot;&quot;);
    log(&apos;GET(&quot;&quot;): &apos; + req.getResponseHeader(&quot;REQMETHOD&quot;) + &quot;(&quot; + req.getResponseHeader(&quot;REQLENGTH&quot;) + &quot; bytes), Content-Type: &quot; + req.getResponseHeader(&quot;REQTYPE&quot;));

    req.open(&quot;GET&quot;, &quot;methods.cgi&quot;, false);
    req.send(null);
    log(&apos;GET(null): &apos; + req.getResponseHeader(&quot;REQMETHOD&quot;) + &quot;(&quot; + req.getResponseHeader(&quot;REQLENGTH&quot;) + &quot; bytes), Content-Type: &quot; + req.getResponseHeader(&quot;REQTYPE&quot;));

    req.open(&quot;GET&quot;, &quot;methods.cgi&quot;, false);
    req.send(&quot;123&quot;);
    log(&apos;GET(&quot;123&quot;): &apos; + req.getResponseHeader(&quot;REQMETHOD&quot;) + &quot;(&quot; + req.getResponseHeader(&quot;REQLENGTH&quot;) + &quot; bytes), Content-Type: &quot; + req.getResponseHeader(&quot;REQTYPE&quot;));

    req.open(&quot;POST&quot;, &quot;methods.cgi&quot;, false);
    req.send(&quot;&quot;);
    log(&apos;POST(&quot;&quot;): &apos; + req.getResponseHeader(&quot;REQMETHOD&quot;) + &quot;(&quot; + req.getResponseHeader(&quot;REQLENGTH&quot;) + &quot; bytes), Content-Type: &quot; + req.getResponseHeader(&quot;REQTYPE&quot;));

    req.open(&quot;POST&quot;, &quot;methods.cgi&quot;, false);
    req.send(null);
    log(&apos;POST(null): &apos; + req.getResponseHeader(&quot;REQMETHOD&quot;) + &quot;(&quot; + req.getResponseHeader(&quot;REQLENGTH&quot;) + &quot; bytes), Content-Type: &quot; + req.getResponseHeader(&quot;REQTYPE&quot;));

    req.open(&quot;POST&quot;, &quot;methods.cgi&quot;, false);
    req.send(&quot;123&quot;);
    log(&apos;POST(&quot;123&quot;): &apos; + req.getResponseHeader(&quot;REQMETHOD&quot;) + &quot;(&quot; + req.getResponseHeader(&quot;REQLENGTH&quot;) + &quot; bytes), Content-Type: &quot; + req.getResponseHeader(&quot;REQTYPE&quot;));

    req.open(&quot;PUT&quot;, &quot;methods.cgi&quot;, false);
    req.send(&quot;&quot;);
    log(&apos;PUT(&quot;&quot;): &apos; + req.getResponseHeader(&quot;REQMETHOD&quot;) + &quot;(&quot; + req.getResponseHeader(&quot;REQLENGTH&quot;) + &quot; bytes), Content-Type: &quot; + req.getResponseHeader(&quot;REQTYPE&quot;));

    req.open(&quot;PUT&quot;, &quot;methods.cgi&quot;, false);
    req.send(null);
    log(&apos;PUT(null): &apos; + req.getResponseHeader(&quot;REQMETHOD&quot;) + &quot;(&quot; + req.getResponseHeader(&quot;REQLENGTH&quot;) + &quot; bytes), Content-Type: &quot; + req.getResponseHeader(&quot;REQTYPE&quot;));

    req.open(&quot;PUT&quot;, &quot;methods.cgi&quot;, false);
    req.send(&quot;123&quot;);
    log(&apos;PUT(&quot;123&quot;): &apos; + req.getResponseHeader(&quot;REQMETHOD&quot;) + &quot;(&quot; + req.getResponseHeader(&quot;REQLENGTH&quot;) + &quot; bytes), Content-Type: &quot; + req.getResponseHeader(&quot;REQTYPE&quot;));

    req.open(&quot;DELETE&quot;, &quot;methods.cgi&quot;, false);
    req.send(&quot;&quot;);
    log(&apos;DELETE(&quot;&quot;): &apos; + req.getResponseHeader(&quot;REQMETHOD&quot;) + &quot;(&quot; + req.getResponseHeader(&quot;REQLENGTH&quot;) + &quot; bytes), Content-Type: &quot; + req.getResponseHeader(&quot;REQTYPE&quot;));

    req.open(&quot;DELETE&quot;, &quot;methods.cgi&quot;, false);
    req.send(null);
    log(&apos;DELETE(null): &apos; + req.getResponseHeader(&quot;REQMETHOD&quot;) + &quot;(&quot; + req.getResponseHeader(&quot;REQLENGTH&quot;) + &quot; bytes), Content-Type: &quot; + req.getResponseHeader(&quot;REQTYPE&quot;));

    req.open(&quot;DELETE&quot;, &quot;methods.cgi&quot;, false);
    req.send(&quot;123&quot;);
    log(&apos;DELETE(&quot;123&quot;): &apos; + req.getResponseHeader(&quot;REQMETHOD&quot;) + &quot;(&quot; + req.getResponseHeader(&quot;REQLENGTH&quot;) + &quot; bytes), Content-Type: &quot; + req.getResponseHeader(&quot;REQTYPE&quot;));

    req.open(&quot;HEAD&quot;, &quot;methods.cgi&quot;, false);
    req.send(&quot;&quot;);
    log(&apos;HEAD(&quot;&quot;): &apos; + req.getResponseHeader(&quot;REQMETHOD&quot;) + &quot;(&quot; + req.getResponseHeader(&quot;REQLENGTH&quot;) + &quot; bytes), Content-Type: &quot; + req.getResponseHeader(&quot;REQTYPE&quot;));

    req.open(&quot;HEAD&quot;, &quot;methods.cgi&quot;, false);
    req.send(null);
    log(&apos;HEAD(null): &apos; + req.getResponseHeader(&quot;REQMETHOD&quot;) + &quot;(&quot; + req.getResponseHeader(&quot;REQLENGTH&quot;) + &quot; bytes), Content-Type: &quot; + req.getResponseHeader(&quot;REQTYPE&quot;));

    req.open(&quot;HEAD&quot;, &quot;methods.cgi&quot;, false);
    req.send(&quot;123&quot;);
    log(&apos;HEAD(&quot;123&quot;): &apos; + req.getResponseHeader(&quot;REQMETHOD&quot;) + &quot;(&quot; + req.getResponseHeader(&quot;REQLENGTH&quot;) + &quot; bytes), Content-Type: &quot; + req.getResponseHeader(&quot;REQTYPE&quot;));

    req.open(&quot;WKFOOBAR&quot;, &quot;methods.cgi&quot;, false);
    req.send(&quot;&quot;);
    log(&apos;WKFOOBAR(&quot;&quot;): &apos; + req.getResponseHeader(&quot;REQMETHOD&quot;) + &quot;(&quot; + req.getResponseHeader(&quot;REQLENGTH&quot;) + &quot; bytes), Content-Type: &quot; + req.getResponseHeader(&quot;REQTYPE&quot;));

    req.open(&quot;WKFOOBAR&quot;, &quot;methods.cgi&quot;, false);
    req.send(null);
    log(&apos;WKFOOBAR(null): &apos; + req.getResponseHeader(&quot;REQMETHOD&quot;) + &quot;(&quot; + req.getResponseHeader(&quot;REQLENGTH&quot;) + &quot; bytes), Content-Type: &quot; + req.getResponseHeader(&quot;REQTYPE&quot;));

    req.open(&quot;WKFOOBAR&quot;, &quot;methods.cgi&quot;, false);
    req.send(&quot;123&quot;);
    log(&apos;WKFOOBAR(&quot;123&quot;): &apos; + req.getResponseHeader(&quot;REQMETHOD&quot;) + &quot;(&quot; + req.getResponseHeader(&quot;REQLENGTH&quot;) + &quot; bytes), Content-Type: &quot; + req.getResponseHeader(&quot;REQTYPE&quot;));

    req.open(&quot;SEARCH&quot;, &quot;methods.cgi&quot;, false);
    req.send(&quot;&quot;);
    log(&apos;SEARCH(&quot;&quot;): &apos; + req.getResponseHeader(&quot;REQMETHOD&quot;) + &quot;(&quot; + req.getResponseHeader(&quot;REQLENGTH&quot;) + &quot; bytes), Content-Type: &quot; + req.getResponseHeader(&quot;REQTYPE&quot;));

    req.open(&quot;SEARCH&quot;, &quot;methods.cgi&quot;, false);
    req.send(null);
    log(&apos;SEARCH(null): &apos; + req.getResponseHeader(&quot;REQMETHOD&quot;) + &quot;(&quot; + req.getResponseHeader(&quot;REQLENGTH&quot;) + &quot; bytes), Content-Type: &quot; + req.getResponseHeader(&quot;REQTYPE&quot;));

    req.open(&quot;SEARCH&quot;, &quot;methods.cgi&quot;, false);
    req.send(&quot;123&quot;);
    log(&apos;SEARCH(&quot;123&quot;): &apos; + req.getResponseHeader(&quot;REQMETHOD&quot;) + &quot;(&quot; + req.getResponseHeader(&quot;REQLENGTH&quot;) + &quot; bytes), Content-Type: &quot; + req.getResponseHeader(&quot;REQTYPE&quot;));
    done();</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>427345</commentid>
    <comment_count>2</comment_count>
    <who name="Robert Hogan">robert</who>
    <bug_when>2011-06-25 03:03:20 -0700</bug_when>
    <thetext>These were fixed under https://bugs.webkit.org/show_bug.cgi?id=62221

*** This bug has been marked as a duplicate of bug 62221 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>