<?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>20045</bug_id>
          
          <creation_ts>2012-11-22 16:00:14 +0000</creation_ts>
          <short_desc>data: URLs, HTTP, and parsing</short_desc>
          <delta_ts>2013-04-12 12:43:40 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>Fetch</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows 3.1</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>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Anne">annevk</reporter>
          <assigned_to name="Anne">annevk</assigned_to>
          <cc>julian.reschke</cc>
    
    <cc>mike</cc>
    
    <cc>public-webapps</cc>
          
          <qa_contact>sideshowbarker+fetchspec</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>78654</commentid>
    <comment_count>0</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2012-11-22 16:00:14 +0000</bug_when>
    <thetext>data: URLs almost always successfully parse per the URL parser, but the URL processing step can go wrong. Maybe if that goes wrong it should be a 400 Bad Request? Or maybe 500 Internal Server Error?

So e.g.

data:test

parses fine as a URL, but does not parse fine as a data: URL.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78655</commentid>
    <comment_count>1</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2012-11-22 16:00:44 +0000</bug_when>
    <thetext>This question relates to http://xhr.spec.whatwg.org/#data:-urls-and-http by the way.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78675</commentid>
    <comment_count>2</comment_count>
    <who name="Julian Reschke">julian.reschke</who>
    <bug_when>2012-11-23 06:59:57 +0000</bug_when>
    <thetext>(In reply to comment #0)
&gt; data: URLs almost always successfully parse per the URL parser, but the URL
&gt; processing step can go wrong. Maybe if that goes wrong it should be a 400
&gt; Bad Request? Or maybe 500 Internal Server Error?
&gt; 
&gt; So e.g.
&gt; 
&gt; data:test
&gt; 
&gt; parses fine as a URL, but does not parse fine as a data: URL.

Sounds right to me. However, I would just require 4xx (and state that 400 is fine), in case we ever define a more specific status code.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86033</commentid>
    <comment_count>3</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2013-04-12 12:43:40 +0000</bug_when>
    <thetext>This is fixed, also in XHR for now. Failure to parse will generate a network error.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>