Bug 148833 - [FILEOPEN] QPW dropping sheets
Summary: [FILEOPEN] QPW dropping sheets
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: filters and storage (show other bugs)
Version:
(earliest affected)
7.3.2.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Sheet
  Show dependency treegraph
 
Reported: 2022-04-28 09:34 UTC by SheetJS
Modified: 2024-12-23 20:05 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
sample file (25.93 KB, application/x-ole-storage)
2022-04-28 13:09 UTC, Xisco Faulí
Details

Note You need to log in before you can comment on or make changes to this bug.
Description SheetJS 2022-04-28 09:34:36 UTC
Description:
LO is extracting only the first 256 worksheets from a QPW file, silently dropping other sheets.

Steps to Reproduce:
https://github.com/SheetJS/test_files/raw/master/q10test.qpw (download and open)

Actual Results:
Sheet "ZZZ" / "Sheet18278" is missing

Expected Results:
Sheet "ZZZ" has content in cell A1


Reproducible: Always


User Profile Reset: Yes



Additional Info:
Comment 1 Xisco Faulí 2022-04-28 13:09:51 UTC
Created attachment 179824 [details]
sample file
Comment 2 Roman Kuznetsov 2022-05-01 19:20:01 UTC
I confirm the problem.

Version: 7.4.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: c81f4a4ecbfa7dc97d8c28b5ec5f00d1d561b6bb
CPU threads: 4; OS: Windows 6.1 Service Pack 1 Build 7601; UI render: Skia/Raster; VCL: win
Locale: ru-RU (ru_RU); UI: ru-RU
Calc: CL

Interesting that LibreOffice could open it but I didn't see the QPW extension in our file format list...

btw, LO Calc support only 10000 sheets in the one spreadsheet.
Comment 3 Julien Nabet 2022-06-16 20:07:41 UTC
On pc Debian x86-64 with master sources updated today, I could reproduce this.

Just for info, it uses libwps lib.
Beginning of logs:
./soffice /tmp/q10test.qpw 
WPSDocument::isFileFormatSupported()
WPSHeader::constructHeader: find a Quatto Pro qpw spreadsheet
Throwing InvalidHeaderException
Throwing InvalidHeaderException
WPSDocument::isFileFormatSupported()
WPSHeader::constructHeader: find a Quatto Pro qpw spreadsheet
warn:oox.storage:1308993:1308993:oox/source/helper/zipstorage.cxx:68: ZipStorage::ZipStorage exception opening input storage com.sun.star.io.IOException message: "at /home/julien/lo/libreoffice/package/source/xstor/xfactory.cxx:260"
warn:oox:1308993:1308993:oox/source/crypto/DocumentDecryption.cxx:166: Encrypted package does not contain DataSpaceMap
Throwing InvalidHeaderException
WPSDocument::isFileFormatSupported()
WPSHeader::constructHeader: find a Quatto Pro qpw spreadsheet
Throwing InvalidHeaderException
AbiDocument::isFileFormatSupported
Found xml parser severity error Document is empty

WPSDocument::isFileFormatSupported()
WPSHeader::constructHeader: find a Quatto Pro qpw spreadsheet
PageSpan::get: can not find a master page name
...

But I don't know where's the 256 sheets limit.
Comment 4 QA Administrators 2024-06-16 03:17:18 UTC
Dear SheetJS,

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 https://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://web.libera.chat/?settings=#libreoffice-qa

Thank you for helping us make LibreOffice even better for everyone!

Warm Regards,
QA Team

MassPing-UntouchedBug