Bug 73971 - FILEOPEN: PPT file will not open if set password to modify (no problem with PPTX)
Summary: FILEOPEN: PPT file will not open if set password to modify (no problem with P...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: Other All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: BSA
Keywords: filter:ppt
Depends on:
Blocks: Password-Protected PPT
  Show dependency treegraph
 
Reported: 2014-01-23 12:02 UTC by Mack
Modified: 2024-04-26 03:18 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
File that won't open (1.43 MB, application/vnd.ms-powerpoint)
2014-01-23 12:02 UTC, Mack
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mack 2014-01-23 12:02:21 UTC
Created attachment 92657 [details]
File that won't open

Problem description: 
After clicking on file I receive an Invalid file notification.  File opens with MS Office 2007 
Steps to reproduce:
1. ....
2. ....
3. ....

Current behavior:

Expected behavior:

              
Operating System: Windows 8
Version: 4.1.4.2 release
Comment 1 tommy27 2014-01-23 20:18:30 UTC
confirmed with LibO 4.1.4.2 under Win7 64bit
Comment 2 Julien Nabet 2014-01-23 21:19:03 UTC
On pc Debian x86-64 with master sources updated today, I got a message telling:
"
Version Incompatibility.
Incorrect file version.
"
Comment 3 tommy27 2014-01-24 06:47:31 UTC Comment hidden (obsolete)
Comment 4 tommy27 2014-07-20 11:24:30 UTC Comment hidden (obsolete)
Comment 5 tommy27 2014-07-20 11:26:14 UTC
same problem in OOo 3.3.0 and AOO 4.1.0
bug is inherited from OOo
Comment 6 Julien Nabet 2014-07-20 17:05:11 UTC
A code pointer to start investigation, error is triggered here:
http://opengrok.libreoffice.org/xref/core/sd/source/filter/sdpptwrp.cxx#109

Now we must unwind all this.
Comment 7 Julien Nabet 2014-07-21 13:37:41 UTC
Trying the unwinding, I find that bOk becomes false here:
http://opengrok.libreoffice.org/xref/core/filter/source/msfilter/svdfppt.cxx#1418
   1418         if ( aDocHd.nRecType == PPT_PST_Document && aDocAtomHd.nRecType == PPT_PST_DocumentAtom )
   1419         {
   1420             aDocAtomHd.SeekToBegOfRecord( rStCtrl );
   1421             ReadPptDocumentAtom( rStCtrl, aDocAtom );
   1422         }
   1423         else
   1424             bOk = false;

Here are the values retrieved:
(gdb) p aDocHd.nRecType
$12 = 54059
(gdb) p aDocAtomHd.nRecType
$13 = 9612
whereas http://opengrok.libreoffice.org/xref/core/include/filter/msfilter/svdfppt.hxx#1332/1333
indicates:
#define PPT_PST_Document                        1000
#define PPT_PST_DocumentAtom                    1001
Comment 8 Julien Nabet 2014-07-21 14:02:11 UTC
Miklos: I tried to find some hints there http://msdn.microsoft.com/en-us/library/dd926377%28v=office.12%29.aspx but am quite stuck. Any idea?
Comment 9 steve 2015-07-23 09:37:19 UTC
another data point: 

OS X 10.10.4 LO nightly from today: "Incorrect file version."

Opens in Powerpoint.
Comment 10 Julien Nabet 2015-08-01 07:03:16 UTC
On pc Debian x86-64 with master sources updated yesterday, I could reproduce this.

We enter the same else block, see http://opengrok.libreoffice.org/xref/core/filter/source/msfilter/svdfppt.cxx#1435

Here's some info from gdb:
1435	        if ( aDocHd.nRecType == PPT_PST_Document && aDocAtomHd.nRecType == PPT_PST_DocumentAtom )
(gdb) p aDocHd
$1 = {nRecVer = 7 '\a', nRecInstance = 305, nImpVerInst = 4887, nRecType = 54059, nRecLen = 2009060675, nFilePos = 8}
(gdb) p aDocAtomHd
$2 = {nRecVer = 5 '\005', nRecInstance = 2559, nImpVerInst = 40949, nRecType = 9612, nRecLen = 1653510414, nFilePos = 16}
Comment 11 Julien Nabet 2015-08-01 07:32:15 UTC
I took a look to https://msdn.microsoft.com/en-us/library/office/cc313106%28v=office.12%29.aspx from 2.13.24
RecordType but found nothing for nRecType = 54059 (or 9612)
Comment 12 Xisco Faulí 2016-08-11 16:06:21 UTC
This issue is still reproducible with

Version: 5.2.0.4
Build ID: 066b007f5ebcc236395c7d282ba488bca6720265
CPU Threads: 4; OS Version: Windows 6.1; UI Render: default; 
Locale: es-ES (es_ES)
Comment 13 QA Administrators 2017-09-01 11:17:10 UTC Comment hidden (obsolete)
Comment 14 tommy27 2017-09-02 06:59:27 UTC Comment hidden (obsolete)
Comment 15 QA Administrators 2018-09-03 02:43:27 UTC Comment hidden (obsolete)
Comment 16 Timur 2018-09-03 13:25:38 UTC
Key point is this is PPT with password to modify. No problem with PPTX. 
This is not related to specific file, but it's a general issue. Similar in Bug 38370 but that one is crowded. 
https://bugs.documentfoundation.org/show_bug.cgi?id=38370#c57
Comment 17 QA Administrators 2022-03-29 03:59:41 UTC Comment hidden (obsolete)
Comment 18 QA Administrators 2024-04-26 03:18:09 UTC
Dear Mack,

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