<?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>23160</bug_id>
          
          <creation_ts>2013-09-04 20:17:13 +0000</creation_ts>
          <short_desc>Add a File.rawName attribute on File alongside File.name, and parse for separators</short_desc>
          <delta_ts>2013-09-10 00:44:38 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>File API</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</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>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Arun">arun</reporter>
          <assigned_to name="Arun">arun</assigned_to>
          <cc>annevk</cc>
    
    <cc>public-webapps</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>93004</commentid>
    <comment_count>0</comment_count>
    <who name="Arun">arun</who>
    <bug_when>2013-09-04 20:17:13 +0000</bug_when>
    <thetext>The following changes should be added to the File API:

1. File.name represents a [EnsureUTF16] DOMString attribute for user agents to represent a file name as retrieved from the underlying file system; it may lead to data loss across client-server scenarios.  It must not allow for &quot;/&quot; or &quot;\&quot; characters.  It will be a parameter to the File constructor.

2. File.rawName should be an ArrayBuffer attribute representing the raw bytes of the filename.  It is not a constructor attribute, and should represent the raw bytes of the File.name attribute.

In this change, File.rawName will always be a byte sequence representation of File.name.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93128</commentid>
    <comment_count>1</comment_count>
    <who name="Arun">arun</who>
    <bug_when>2013-09-06 17:01:09 +0000</bug_when>
    <thetext>While an additional step can be to make sure File.name is [EnsureUTF16] I don&apos;t think File.rawName is necessary for now.  But I&apos;ll leave this bug open in case it proves itself useful, especially for a non-ZIP archive use case.  I&apos;m not so sure putting it in to prevent theoretical information loss for a given filesystem is useful at this stage.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93129</commentid>
    <comment_count>2</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2013-09-06 17:05:44 +0000</bug_when>
    <thetext>Yeah, basically need to know about http://lists.w3.org/Archives/Public/public-webapps/2013JulSep/0442.html

For zip archives we could even consider requiring an encoding to be specified and just decode the paths using that encoding. And be gentle with failures. Not sure if that&apos;s general purpose enough though.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93182</commentid>
    <comment_count>3</comment_count>
    <who name="Arun">arun</who>
    <bug_when>2013-09-10 00:44:38 +0000</bug_when>
    <thetext>Fixed, but strictly along the lines of Comment 1.  We&apos;re not doing File.rawName.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>