<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:serval2412@yahoo.fr" title="Julien Nabet <serval2412@yahoo.fr>"> <span class="fn">Julien Nabet</span></a>
</span> changed
<a class="bz_bug_link
bz_status_NEW "
title="NEW - Can not open .docx generated by BDoc"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=97379">bug 97379</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td>
</td>
<td>serval2412@yahoo.fr
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Can not open .docx generated by BDoc"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=97379#c9">Comment # 9</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Can not open .docx generated by BDoc"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=97379">bug 97379</a>
from <span class="vcard"><a class="email" href="mailto:serval2412@yahoo.fr" title="Julien Nabet <serval2412@yahoo.fr>"> <span class="fn">Julien Nabet</span></a>
</span></b>
<pre>With this patch, I could open the file:
diff --git a/comphelper/source/misc/storagehelper.cxx
b/comphelper/source/misc/storagehelper.cxx
index f7180bdd230a..392d3963d5a9 100644
--- a/comphelper/source/misc/storagehelper.cxx
+++ b/comphelper/source/misc/storagehelper.cxx
@@ -572,7 +572,7 @@ bool OStorageHelper::IsValidZipEntryFileName(
{
switch ( pChar[i] )
{
- case '\\':
+// case '\\':
case '?':
case '<':
case '>':
The pb is bdoc generator created a zip file with '/', here is the output of
unzip:
creating: docProps/
inflating: docProps/app.xml
inflating: docProps/core.xml
creating: word/
inflating: word/fontTable.xml
creating: word\media/
inflating: word/numbering.xml
inflating: word/settings.xml
creating: word\theme/
inflating: word/theme/theme1.xml
inflating: word/webSettings.xml
creating: word\_rels/
creating: _rels/
inflating: word/footnotes.xml
inflating: word/endnotes.xml
inflating: word/document.xml
inflating: word/_rels/document.xml.rels
inflating: [Content_Types].xml
inflating: _rels/.rels
inflating: word/styles.xml
Quotation from zip spec
<a href="https://pkware.cachefly.net/webdocs/casestudies/APPNOTE.TXT">https://pkware.cachefly.net/webdocs/casestudies/APPNOTE.TXT</a>:
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.
Perhaps we could be strict when writing a zip file and less strict when reading
one?</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>