<?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>17426</bug_id>
          
          <creation_ts>2008-02-18 11:19:23 -0800</creation_ts>
          <short_desc>XMLHttpRequest status remains zero if requesting over HTTPS from a server with a self-signed certificate</short_desc>
          <delta_ts>2010-05-18 12:36:39 -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>528+ (Nightly build)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexey Proskuryakov">ap</reporter>
          <assigned_to name="Alexey Proskuryakov">ap</assigned_to>
          <cc>emacemac7</cc>
    
    <cc>jchaffraix</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>71062</commentid>
    <comment_count>0</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2008-02-18 11:19:23 -0800</bug_when>
    <thetext>I&apos;ve seen a report of XMLHTTPRequest returning a wrong (zero) status when making an HTTP request to a server with a self-signed certificate.

Since bugs.webkit.org currently has a self-signed certificate, this is a handy server to do some testing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71063</commentid>
    <comment_count>1</comment_count>
      <attachid>19191</attachid>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2008-02-18 11:19:52 -0800</bug_when>
    <thetext>Created attachment 19191
test case</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71064</commentid>
    <comment_count>2</comment_count>
      <attachid>19192</attachid>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2008-02-18 11:21:23 -0800</bug_when>
    <thetext>Created attachment 19192
test case #2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72020</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2008-02-26 09:45:49 -0800</bug_when>
    <thetext>This is a bug indeed - but one needs to access the server from a local HTML file (if you have already visited the site, there is no problem, and you cannot currently make cross-site requests unless you are a local file).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>227425</commentid>
    <comment_count>4</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2010-05-18 12:22:25 -0700</bug_when>
    <thetext>&lt;rdar://problem/5739559&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>227434</commentid>
    <comment_count>5</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2010-05-18 12:36:39 -0700</bug_when>
    <thetext>I&apos;m not sure why I thought that this was a bug.

I&apos;m now testing with WebKit test server (https://127.0.0.1:8443), and Firefox doesn&apos;t warn about the certificate being self-signed and expired. But Safari warns about it when opening a resource directly, so it seems to make sense that XMLHttpRequest fails.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>19191</attachid>
            <date>2008-02-18 11:19:52 -0800</date>
            <delta_ts>2008-02-18 11:19:52 -0800</delta_ts>
            <desc>test case</desc>
            <filename>xhr-log.html</filename>
            <type>text/html</type>
            <size>443</size>
            <attacher name="Alexey Proskuryakov">ap</attacher>
            
              <data encoding="base64">PGJvZHk+CjxwcmUgaWQ9bG9nPjwvcHJlPgo8c2NyaXB0PgogIGZ1bmN0aW9uIGxvZyhtZXNzYWdl
KSB7CiAgICBkb2N1bWVudC5nZXRFbGVtZW50QnlJZCgibG9nIikuaW5uZXJUZXh0ICs9IG1lc3Nh
Z2UgKyAiXG4iOwogIH0KICAKICBmdW5jdGlvbiBzdGF0dXMoKSB7CiAgICB0cnkgewogICAgICBy
ZXR1cm4gcmVxLnN0YXR1czsKICAgIH0gY2F0Y2ggKGV4KSB7CiAgICAgIHJldHVybiBleDsKICAg
IH0KICB9CiAgCiAgdmFyIHJlcSA9IG5ldyBYTUxIdHRwUmVxdWVzdDsKICByZXEub25yZWFkeXN0
YXRlY2hhbmdlID0gZnVuY3Rpb24oKSB7CiAgICBsb2coIlN0YXRlICIgKyByZXEucmVhZHlTdGF0
ZSArICI6IHN0YXR1cyAiICsgc3RhdHVzKCkpOwogIH0KCiAgcmVxLm9wZW4oIkdFVCIsICJ4aHIt
bG9nLmh0bWwiKTsKICByZXEuc2VuZCgpOwo8L3NjcmlwdD4KPC9ib2R5Pgo=
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>19192</attachid>
            <date>2008-02-18 11:21:23 -0800</date>
            <delta_ts>2008-02-18 11:21:23 -0800</delta_ts>
            <desc>test case #2</desc>
            <filename>xhr-log.html</filename>
            <type>text/html</type>
            <size>454</size>
            <attacher name="Alexey Proskuryakov">ap</attacher>
            
              <data encoding="base64">PGJvZHk+CjxwcmUgaWQ9bG9nPjwvcHJlPgo8c2NyaXB0PgogIGZ1bmN0aW9uIGxvZyhtZXNzYWdl
KSB7CiAgICBkb2N1bWVudC5nZXRFbGVtZW50QnlJZCgibG9nIikuaW5uZXJUZXh0ICs9IG1lc3Nh
Z2UgKyAiXG4iOwogIH0KICAKICBmdW5jdGlvbiBzdGF0dXMoKSB7CiAgICB0cnkgewogICAgICBy
ZXR1cm4gcmVxLnN0YXR1czsKICAgIH0gY2F0Y2ggKGV4KSB7CiAgICAgIHJldHVybiBleDsKICAg
IH0KICB9CiAgCiAgdmFyIHJlcSA9IG5ldyBYTUxIdHRwUmVxdWVzdDsKICByZXEub25yZWFkeXN0
YXRlY2hhbmdlID0gZnVuY3Rpb24oKSB7CiAgICBsb2coIlN0YXRlICIgKyByZXEucmVhZHlTdGF0
ZSArICI6IHN0YXR1cyAiICsgc3RhdHVzKCkpOwogIH0KCiAgcmVxLm9wZW4oIkdFVCIsICJhdHRh
Y2htZW50LmNnaT9pZD0xOTE5MSIpOwogIHJlcS5zZW5kKCk7Cjwvc2NyaXB0Pgo8L2JvZHk+Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>