Download it now!
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: 2020-03-28 08:41 UTC (History)
4 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
same error message in Windows as well.
set platform to ALL
Comment 4 tommy27 2014-07-20 11:24:30 UTC
still reproducible with 4.2.5.2 and 4.4.0.0.alpha0+
Build ID: b9dca968c6fd0ab5ca140c65b0e54d153cd34986
TinderBox: Win-x86@42, Branch:master, Time: 2014-07-18_22:51:20

same file is opened with no issue in MS PowerPoint Viewer
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
I can't open file with LibO 5.4.0.3 under Win8.1 x64
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