Created attachment 122218 [details] updated by word - using bdoc generator
Created attachment 122219 [details] using bdoc generator.docx
The generated document using Business Docucment API can not be opened by LibreOffice. => impossible to repair => general exception occurs Then I open this document using WOrd 2013, and make few changes and save it. Then LibreOffice can open the document. What is wrong ? http://www.bdoc.com/ or libreboffice ? kind regards, David KELLER
There are some errors in the ZIP archive structure, it seems.
Why is this new given that there are problems with the zip file structure? Seems like NOTOURBUG without more information indicating that it's ours.
Because validating archive correctness is beyond the scope of LO. As long as there is no physical corruption, document should be opened.
** Please read this message in its entirety before responding ** To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the information from Help - About LibreOffice. If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice. Please DO NOT Update the version field Reply via email (please reply directly on the bug tracker) Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from http://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to 'inherited from OOo'; 4b. If the bug was not present in 3.3 - add 'regression' to keyword Feel free to come ask questions or to say hello in our QA chat: https://kiwiirc.com/nextclient/irc.freenode.net/#libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug
still repro in Version: 6.2.0.0.alpha0+ Build ID: cec31fdedd7c94f4ebf903a66456a75867db22b0 CPU threads: 4; OS: Windows 6.1; UI render: default; VCL: win; TinderBox: Win-x86@42, Branch:master, Time: 2018-10-21_22:54:44 Locale: ru-RU (ru_RU); Calc: threaded but my opinion -> NOTOURBUG, because answer on this question: >What is wrong ? http://www.bdoc.com/ or libreboffice ? is http://www.bdoc.com/ Xisco, what do you think?
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 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. Perhaps we could be strict when writing a zip file and less strict when reading one?
On Win10 with master sources updated today, it still fails for the same reason. The same patch from https://bugs.documentfoundation.org/show_bug.cgi?id=97379#c9 (except line number which changed) makes it work. But should we consider this as NOTOURBUG or should we try to fix this for reading part (hoping that IsValidZipEntryFileName is just used for read part). Xisco: any thoughts here?
Xisco, please take this and CC bug to ESC for a decision.
$ zipinfo "/home/suokunlong/下载/tmp/using bdoc generator.docx" Archive: /home/suokunlong/下载/tmp/using bdoc generator.docx Zip file size: 14711 bytes, number of entries: 20 drwx--- 0.0 fat 0 b- defN 14-May-23 15:07 docProps/ -rw-a-- 0.0 fat 999 b- defN 14-May-23 13:07 docProps/app.xml -rw-a-- 0.0 fat 729 b- defN 14-May-23 13:07 docProps/core.xml drwx--- 0.0 fat 0 b- defN 14-May-23 15:07 word/ -rw-a-- 0.0 fat 1561 b- defN 14-May-23 13:07 word/fontTable.xml drwx--- 0.0 fat 0 b- defN 14-May-23 15:07 word\media/ -rw-a-- 0.0 fat 6424 b- defN 14-May-23 15:07 word/numbering.xml -rw-a-- 0.0 fat 1980 b- defN 14-May-23 13:07 word/settings.xml drwx--- 0.0 fat 0 b- defN 14-May-23 15:07 word\theme/ -rw-a-- 0.0 fat 6992 b- defN 14-May-23 13:07 word/theme/theme1.xml -rw-a-- 0.0 fat 260 b- defN 14-May-23 13:07 word/webSettings.xml drwx--- 0.0 fat 0 b- defN 14-May-23 15:07 word\_rels/ drwx--- 0.0 fat 0 b- defN 14-May-23 15:07 _rels/ -rw-a-- 0.0 fat 1556 b- defN 16-Jan-26 11:13 word/footnotes.xml -rw-a-- 0.0 fat 1554 b- defN 16-Jan-26 11:13 word/endnotes.xml -rw-a-- 0.0 fat 53721 t- defN 16-Jan-26 10:13 word/document.xml -rw-a-- 0.0 fat 1186 t- defN 16-Jan-26 10:13 word/_rels/document.xml.rels -rw-a-- 0.0 fat 2186 t- defN 16-Jan-26 10:13 [Content_Types].xml -rw-a-- 0.0 fat 605 t- defN 16-Jan-26 10:13 _rels/.rels -rw---- 0.0 fat 35900 t- defN 14-May-23 14:07 word/styles.xml 20 files, 115653 bytes uncompressed, 12559 bytes compressed: 89.1% See https://bugs.documentfoundation.org/show_bug.cgi?id=96401#c17 *** This bug has been marked as a duplicate of bug 96401 ***