<?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>14833</bug_id>
          
          <creation_ts>2007-07-31 11:48:14 -0700</creation_ts>
          <short_desc>XMLHttpRequest with incorrect credentials raises an exception on Windows</short_desc>
          <delta_ts>2010-07-12 14:40:30 -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>XML</component>
          <version>523.x (Safari 3)</version>
          <rep_platform>All</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar, PlatformOnly</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>10489</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Jesse Costello-Good">jesse</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>aroben</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>3227</commentid>
    <comment_count>0</comment_count>
    <who name="Jesse Costello-Good">jesse</who>
    <bug_when>2007-07-31 11:48:14 -0700</bug_when>
    <thetext>The following works on the MacOS X nightly but not on Intel. On Intel, r.status is 401 (access denied).

var r = new XMLHttpRequest();
r.open(&quot;GET&quot;, &quot;http://gi.tibco.com/tests/auth/data1.xml&quot;, false, &quot;gi&quot;, &quot;gi&quot;);
r.send();
assertEquals(200, r.status);</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3236</commentid>
    <comment_count>1</comment_count>
    <who name="Matt Lilek">dev+webkit</who>
    <bug_when>2007-07-31 13:02:41 -0700</bug_when>
    <thetext>(In reply to comment #0)
&gt; The following works on the MacOS X nightly but not on Intel. On Intel, r.status
&gt; is 401 (access denied).

Just to clarify - by Intel do you mean Windows (assuming this is the case from the Platform field) or is there a difference between a PPC nightly and an Intel nightly on Mac OS X?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3237</commentid>
    <comment_count>2</comment_count>
    <who name="Matt Lilek">dev+webkit</who>
    <bug_when>2007-07-31 13:03:23 -0700</bug_when>
    <thetext>s/Platform/OS
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3239</commentid>
    <comment_count>3</comment_count>
    <who name="Jesse Costello-Good">jesse</who>
    <bug_when>2007-07-31 13:10:03 -0700</bug_when>
    <thetext>Sorry, my post is confusing. I&apos;m on a MacBook Pro running 10.4 and Parallels with Windows XP. On Windows XP the status code is 401, on MacOS X it is 200.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3265</commentid>
    <comment_count>4</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-07-31 23:32:25 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; Sorry, my post is confusing. I&apos;m on a MacBook Pro running 10.4 and Parallels
&gt; with Windows XP. On Windows XP the status code is 401, on MacOS X it is 200.

Are you running (roughly) the same WebKit Nightly build on both?

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3266</commentid>
    <comment_count>5</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-07-31 23:36:38 -0700</bug_when>
    <thetext>Implicitly confirmed by ap.  :)

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3285</commentid>
    <comment_count>6</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2007-08-01 05:42:05 -0700</bug_when>
    <thetext>&lt;rdar://problem/5376650&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3287</commentid>
    <comment_count>7</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2007-08-01 06:31:01 -0700</bug_when>
    <thetext>Explicitly confirming with Safari beta 3.0.3 and r24749 (also under Parallels, but that shouldn&apos;t matter).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3306</commentid>
    <comment_count>8</comment_count>
    <who name="Jesse Costello-Good">jesse</who>
    <bug_when>2007-08-01 09:07:27 -0700</bug_when>
    <thetext>Yes, r24749 in both cases.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34</commentid>
    <comment_count>9</comment_count>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2007-09-24 17:32:36 -0700</bug_when>
    <thetext>The success case now works on both Mac and Windows.  I just tried both with ToT builds from today.

Using the code - 

&lt;html&gt;
&lt;head&gt;
&lt;script&gt;
    var r = new XMLHttpRequest();
    r.open(&quot;GET&quot;, &quot;http://gi.tibco.com/tests/auth/data1.xml&quot;, false, &quot;gi&quot;, &quot;gi&quot;);
    r.send();
    alert(r.status);
&lt;/script&gt;
&lt;/head&gt;
&lt;/html&gt;

Both Mac and Windows alert &quot;200&quot; 

However there still seems to be some form of bug, as if I change the un/pw to something incorrect, like &quot;sdufghwueg&quot;, &quot;wheuhw&quot;, Mac alerts &quot;401&quot;, and Windows alerts nothing.  The Javascript console on Windows shows
&quot;Error: NETWORK_ERR: XMLHttpRequest Exception 101&quot;

So Windows now can successfully login using HTTP auth, but it&apos;s failed credential case is broken</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>250062</commentid>
    <comment_count>10</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2010-07-12 14:40:30 -0700</bug_when>
    <thetext>I cannot reproduce this with xmlhttprequest/failed-auth.html regression test now.

Note that requests from file:// are treated as cross-origin on Windows now, so the original test case doesn&apos;t work.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>