<?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>19989</bug_id>
          
          <creation_ts>2012-11-17 06:10:58 +0000</creation_ts>
          <short_desc>Handle ZIP-based resources similarly to XML-based resources</short_desc>
          <delta_ts>2019-03-30 19:49:39 +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>MIME</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</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>
          
          <blocked>19746</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Gordon P. Hemsley">gphemsley</reporter>
          <assigned_to name="Gordon P. Hemsley">gphemsley</assigned_to>
          <cc>annevk</cc>
    
    <cc>mike</cc>
          
          <qa_contact>sideshowbarker+mimespec</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>78433</commentid>
    <comment_count>0</comment_count>
    <who name="Gordon P. Hemsley">gphemsley</who>
    <bug_when>2012-11-17 06:10:58 +0000</bug_when>
    <thetext>Related to IETF websec Issue #21:
http://trac.tools.ietf.org/wg/websec/trac/ticket/21

Like XML, there are a number of ZIP-based file formats that will be sniffed as ZIP if not handled carefully. In general, this is not a particularly bad thing, but it would be better to sniff files accurately than &quot;good enough&quot;.

Currently, XML-based types are not sniffed like regular types, which is made easy by the fact that XML-based types are generally labeled as such.

We could do the same for ZIP-based types, but the exception list will be longer, because not all ZIP-based types are explicitly labeled as such.

There is work being done to introduce a &quot;+zip&quot; suffix, but it is not clear whether any existing media type uses it yet:

http://tools.ietf.org/html/draft-ietf-appsawg-media-type-suffix-regs

(
Suffix registration in general is covered here:

http://tools.ietf.org/html/draft-ietf-appsawg-media-type-regs
)

The IE9 changelog notes a number of file extensions (and, thereby, file formats) which are ZIP-based:

[&quot;.zipx&quot;, &quot;accdt&quot;, &quot;crtx&quot;, &quot;docm&quot;, &quot;docx&quot;, &quot;dotm&quot;, &quot;dotx&quot;, &quot;gcsx&quot;, &quot;glox&quot;, &quot;gqsx&quot;, &quot;potm&quot;, &quot;potx&quot;, &quot;ppam&quot;, &quot;ppsm&quot;, &quot;ppsx&quot;, &quot;pptm&quot;, &quot;pptx&quot;, &quot;sldx&quot;, &quot;thmx&quot;, &quot;vdw&quot;, &quot;xlam&quot;, &quot;xlsb&quot;, &quot;xlsm&quot;, &quot;xlsx&quot;, &quot;xltm&quot;, &quot;xltx&quot;]
http://blogs.msdn.com/b/ieinternals/archive/2011/02/11/ie9-release-candidate-minor-changes-list.aspx

This is likely not an exhaustive list.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>129728</commentid>
    <comment_count>1</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2019-03-30 19:49:39 +0000</bug_when>
    <thetext>I&apos;m not convinced we should expand sniffing necessarily. If you feel strongly let&apos;s discuss it in a new issue over at https://github.com/whatwg/mimesniff.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>