https://bugs.documentfoundation.org/show_bug.cgi?id=96401

Kevin Suo <suokunl...@126.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://bugs.documentfounda
                   |                            |tion.org/show_bug.cgi?id=76
                   |                            |115
                 CC|                            |suokunl...@126.com

--- Comment #17 from Kevin Suo <suokunl...@126.com> ---
1. The file uses backslashes as file name separator:

$ zipinfo /home/suokunlong/下载/tmp/failing_doc.docx 
Archive:  /home/suokunlong/下载/tmp/failing_doc.docx
Zip file size: 9547 bytes, number of entries: 13
-rw----     2.0 fat     1576 b- defN 80-Jan-01 00:00 [Content_Types].xml
-rw----     2.0 fat      685 b- defN 15-Dec-08 10:52 docProps\app.xml
-rw----     2.0 fat      619 b- defN 15-Dec-08 10:52 docProps\core.xml
-rw----     2.0 fat     4188 b- defN 15-Dec-08 10:52 word\document.xml
-rw----     2.0 fat      971 b- defN 15-Dec-08 10:52 word\endnotes.xml
-rw----     2.0 fat     1595 b- defN 80-Jan-01 00:00 word\fontTable.xml
-rw----     2.0 fat      977 b- defN 15-Dec-08 10:52 word\footnotes.xml
-rw----     2.0 fat     2440 b- defN 80-Jan-01 00:00 word\settings.xml
-rw----     2.0 fat    16648 b- defN 80-Jan-01 00:00 word\styles.xml
-rw----     2.0 fat      260 b- defN 80-Jan-01 00:00 word\webSettings.xml
-rw----     2.0 fat     6999 b- defN 80-Jan-01 00:00 word\theme\theme1.xml
-rw----     2.0 fat     1081 b- defN 80-Jan-01 00:00
word\_rels\document.xml.rels
-rw----     2.0 fat      590 b- defN 80-Jan-01 00:00 _rels\.rels
13 files, 38629 bytes uncompressed, 8069 bytes compressed:  79.1%

2. Backslash is not allowed by PK ZIP Specs:
https://pkware.cachefly.net/webdocs/casestudies/APPNOTE.TXT

   4.4.17 file name: (Variable)

       4.4.17.1 The name of the file, with optional relative path.
       The path stored MUST NOT contain a drive or
       device letter, or a leading slash.  All slashes
       MUST be forward slashes '/' as opposed to
       backwards slashes '\' for compatibility with Amiga
       and UNIX file systems etc.  If input came from standard
       input, there is no file name field.

3. Actually a lot of third-party software still uses backslashes. See e.g. bug
76115 (which has a duplicate bug 131575).

This bug is for docx, bug 76115 is for xlsx. But I think they use the same
package/source/zippackage code. For bug triaging purpose, should this be marked
as a duplicate of bug 76115?

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to