Bug 38370 - [FILEOPEN] LibreOffice Impress do not allow open password-protected PowerPoint presentations in "read-only" mode
Summary: [FILEOPEN] LibreOffice Impress do not allow open password-protected PowerPoin...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Presentation (show other bugs)
Version: Inherited From OOo
Hardware: Other All
: medium enhancement
Assignee: Not Assigned
QA Contact:
URL:
Whiteboard:
Keywords:
: 47075 62611 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-06-16 05:48 UTC by Răzvan Sandu
Modified: 2014-12-11 20:37 UTC (History)
13 users (show)

See Also:
i915 platform:
i915 features:


Attachments
Testacase file (Microsoft .pps in .7z archive) for bug 38370 (I) (921.60 KB, application/x-7z-compressed)
2011-06-16 06:01 UTC, Răzvan Sandu
Details
Testacase file, part II (921.60 KB, application/x-7z-compressed)
2011-06-16 06:01 UTC, Răzvan Sandu
Details
Testcase file, part III (921.60 KB, application/x-7z-compressed)
2011-06-16 06:02 UTC, Răzvan Sandu
Details
Testcase file, part IV (921.60 KB, application/x-7z-compressed)
2011-06-16 06:03 UTC, Răzvan Sandu
Details
Testacase file, part V (921.60 KB, application/x-7z-compressed)
2011-06-16 06:03 UTC, Răzvan Sandu
Details
Testcase file, part VI (final) (634.35 KB, application/x-7z-compressed)
2011-06-16 06:04 UTC, Răzvan Sandu
Details
MS .pps file in .7z archive part 1 (2.00 MB, application/x-7z-compressed)
2013-02-15 17:14 UTC, RR
Details
MS .pps file in .7z archive part 2 (2.00 MB, application/x-7z-compressed)
2013-02-15 17:14 UTC, RR
Details
MS .pps file in .7z archive part 3 (2.00 MB, application/x-7z-compressed)
2013-02-15 17:15 UTC, RR
Details
MS .pps file in .7z archive part 4 (2.00 MB, application/x-7z-compressed)
2013-02-15 17:16 UTC, RR
Details
MS .pps file in .7z archive part 5 (2.00 MB, application/x-7z-compressed)
2013-02-15 17:16 UTC, RR
Details
MS .pps file in .7z archive part 6 (2.00 MB, application/x-7z-compressed)
2013-02-15 17:17 UTC, RR
Details
MS .pps file in .7z archive part 7 (2.00 MB, application/x-7z-compressed)
2013-02-15 17:18 UTC, RR
Details
MS .pps file in .7z archive part 8 (973.77 KB, application/x-7z-compressed)
2013-02-15 17:18 UTC, RR
Details
MS .pps file in .7z archive part 2 (binary) (2.00 MB, application/x-7z-compressed)
2013-02-16 11:17 UTC, RR
Details
MS .pps file in .7z archive part 3 (binary) (2.00 MB, application/x-7z-compressed)
2013-02-16 11:18 UTC, RR
Details
MS .pps file in .7z archive part 4 (binary) (2.00 MB, application/x-7z-compressed)
2013-02-16 11:20 UTC, RR
Details
MS .pps file in .7z archive part 5 (binary) (2.00 MB, application/x-7z-compressed)
2013-02-16 11:21 UTC, RR
Details
MS .pps file in .7z archive part 6 (binary) (2.00 MB, application/x-7z-compressed)
2013-02-16 11:22 UTC, RR
Details
Test file (1) - Without Password (8.00 KB, application/vnd.ms-powerpoint)
2013-10-14 15:10 UTC, Geraldo
Details
Test file (2) - With Password (10.50 KB, application/vnd.ms-powerpoint)
2013-10-14 15:10 UTC, Geraldo
Details
Test file (3) - Removed Password (8.00 KB, application/vnd.ms-powerpoint)
2013-10-14 15:12 UTC, Geraldo
Details
zip with dump & diff (72.93 KB, application/x-zip)
2014-02-04 19:16 UTC, Cor Nouws
Details

Description Răzvan Sandu 2011-06-16 05:48:48 UTC
Hello,

My LibreOffice version is 3.3.2 OOO330m19 (Build:202) on Ubuntu 11.04

LO cannot open some Microsoft PowerPoint files (.pps) and I get this error:

"Read error. Loading passwprd-protected Microsoft files is not supported".

However, the .pps file is NOT a password-protected Microsoft file, but a regular one. Same file may be opened without a hitch both in Openoffice.org and Microsoft Office.

Same phenomenon may be seen In LibreOffice 3.3.2, Windows version.

Please see an attached test case file.


Thanks a lot,
Răzvan
Comment 1 Răzvan Sandu 2011-06-16 06:01:18 UTC
Created attachment 48044 [details]
Testacase file (Microsoft .pps in .7z archive) for bug 38370 (I)
Comment 2 Răzvan Sandu 2011-06-16 06:01:55 UTC
Created attachment 48045 [details]
Testacase file, part II
Comment 3 Răzvan Sandu 2011-06-16 06:02:31 UTC
Created attachment 48046 [details]
Testcase file, part III
Comment 4 Răzvan Sandu 2011-06-16 06:03:04 UTC
Created attachment 48047 [details]
Testcase file, part IV
Comment 5 Răzvan Sandu 2011-06-16 06:03:51 UTC
Created attachment 48048 [details]
Testacase file, part V
Comment 6 Răzvan Sandu 2011-06-16 06:04:37 UTC
Created attachment 48049 [details]
Testcase file, part VI (final)
Comment 7 tester8 2011-06-16 13:34:29 UTC
Reproduced with

Ubuntu 10.04.2 x86
LO 3.4

I don't try ot open file in something else.
Comment 8 Björn Michaelsen 2011-12-23 12:23:06 UTC
[This is an automated message.]
This bug was filed before the changes to Bugzilla on 2011-10-16. Thus it
started right out as NEW without ever being explicitly confirmed. The bug is
changed to state NEEDINFO for this reason. To move this bug from NEEDINFO back
to NEW please check if the bug still persists with the 3.5.0 beta1 or beta2 prereleases.
Details on how to test the 3.5.0 beta1 can be found at:
http://wiki.documentfoundation.org/QA/BugHunting_Session_3.5.0.-1

more detail on this bulk operation: http://nabble.documentfoundation.org/RFC-Operation-Spamzilla-tp3607474p3607474.html
Comment 9 Rainer Bielefeld Retired 2012-01-24 07:41:05 UTC
[Reproducible] with reporter's sample and "LibreOffice 3.4.5 English UI [Build ID: OOO340m1 (Build:502)]" parallel Server installation on German WIN7 Home Premium (64bit). Very old problem, also does not open with  "LibreOffice Portable 3.3.0  - WIN7  Home Premium (64bit) German UI [OOO330m19 (Build:6) tag libreoffice-3.3.0.4]", OOo 3.1.1. OOo 3.4Beta and OOo 3.3.3 also fail.

I always get message "Read-Error. The loading of password-encrypted Microsoft PowerPoint presentations is not supported"

So this one seems inherited from OOo.

Works fine with MS PPT VIEWER and reporter's sample.

Currently I see this one as an Enhancement request. Do we have ambition to support that?

@Thorsten:
Please feel free to reassign (or reset Assignee to default) if it’s not your area or if provided information is not sufficient. Please set Status to ASSIGNED if you accept this Bug.
Comment 10 Rainer Bielefeld Retired 2012-01-24 07:51:05 UTC
I wonder why MS PPT VIEWER does not ask for a password. May be I'm wrong and this one is related to "OOo 112764 - OO wrongly claims that pps is encrypted"?
Or "46307 - Support RC4 encryption to load password protected PPT(Powerpoint)-file"
Comment 11 edelzak 2012-03-13 14:39:25 UTC
(In reply to comment #10)
> I wonder why MS PPT VIEWER does not ask for a password. May be I'm wrong and
> this one is related to "OOo 112764 - OO wrongly claims that pps is encrypted"?
> Or "46307 - Support RC4 encryption to load password protected
> PPT(Powerpoint)-file"

It appears that:-
When someone password protects a PPS so that modifying can only be carried out after a password is entered. Power Point Viewer will open it in read only mode however Libre Office sees that there is a password and will not go any further even though the password is not necessary for read only.
Comment 12 Tony 2012-04-27 09:21:31 UTC
This bug is a very important one; it should be upgraded to high/critical. If somebody sends me (which they do) a normal ppt file which all MSO users can read, then it is a serious setback for LO if it can't even open it.
Comment 13 Tony 2012-04-27 09:25:38 UTC
*** Bug 47075 has been marked as a duplicate of this bug. ***
Comment 14 Rainer Bielefeld Retired 2012-04-27 09:51:07 UTC
It's a very old bug, but LibO really should be able to open PW protected .ppt / .pps
Comment 15 RR 2013-02-15 17:14:16 UTC
Created attachment 74881 [details]
MS .pps file in .7z archive part 1
Comment 16 RR 2013-02-15 17:14:59 UTC
Created attachment 74882 [details]
MS .pps file in .7z archive part 2
Comment 17 RR 2013-02-15 17:15:38 UTC
Created attachment 74883 [details]
MS .pps file in .7z archive part 3
Comment 18 RR 2013-02-15 17:16:16 UTC
Created attachment 74884 [details]
MS .pps file in .7z archive part 4
Comment 19 RR 2013-02-15 17:16:55 UTC
Created attachment 74885 [details]
MS .pps file in .7z archive part 5
Comment 20 RR 2013-02-15 17:17:33 UTC
Created attachment 74886 [details]
MS .pps file in .7z archive part 6
Comment 21 RR 2013-02-15 17:18:12 UTC
Created attachment 74887 [details]
MS .pps file in .7z archive part 7
Comment 22 RR 2013-02-15 17:18:41 UTC
Created attachment 74888 [details]
MS .pps file in .7z archive part 8
Comment 23 RR 2013-02-15 17:23:07 UTC
Times are changing, Libre Office too but this bug still exist.
Fedora 18  - LO 3.6.5
Windows XP - LO 3.6.5
Windows XP - LO 4.0.0.3

I attached Thursday.pps for testing purposes
Comment 24 Rainer Bielefeld Retired 2013-02-16 09:31:12 UTC
RR: (In reply to comment #23)
May be you can tell us the intention behind the latest attachments and comment?
Comment 25 RR 2013-02-16 11:10:27 UTC
I am sorry for my sarcasm but no one care about old bug.
My intention was to awake people and have possibilities to opening MSO files without buying this proprietary software.

Problem is as in Description of bug and, for example, comment #9
"Read error. Loading password-protected Microsoft files is not supported"

Attached file isn't password protected and users of MSO can read it without any password.
Comment 26 RR 2013-02-16 11:17:07 UTC
Created attachment 74929 [details]
MS .pps file in .7z archive part 2 (binary)

Right content type.
Comment 27 RR 2013-02-16 11:18:36 UTC
Created attachment 74930 [details]
MS .pps file in .7z archive part 3 (binary)

Right content type.
Comment 28 RR 2013-02-16 11:20:04 UTC
Created attachment 74931 [details]
MS .pps file in .7z archive part 4 (binary)

Right content type.
Comment 29 RR 2013-02-16 11:21:08 UTC
Created attachment 74932 [details]
MS .pps file in .7z archive part 5 (binary)

Right content type.
Comment 30 RR 2013-02-16 11:22:24 UTC
Created attachment 74933 [details]
MS .pps file in .7z archive part 6 (binary)

Right content type.
Comment 31 Thorsten Behrens 2013-02-19 18:12:48 UTC
So - commenting out

if ( pStorage->IsStream( rtl::OUString("EncryptedSummary" ) ) ) in sd/source/filter/sdpptwrp.cxx, instead of the "cannot open password-encrypted doc" gets us a "Version incompatibility. Incorrect file version." error instead. So I presume, since the ole stream carries this EncryptedSummary, there _is_ some (possibly empty / redundant) encryption in this file.

Someone with a bit of time at their hands to dig into the binary file format needs to have a look. I'm afraid I cannot currently commit to this.
Comment 32 pj 2013-03-15 15:06:56 UTC
Same issue here... file has a password to modify but not read. Looks like it has been ignored since at least 2005 (https://issues.apache.org/ooo/show_bug.cgi?id=46307), though not fully Libre's fault of course. Any chance to get some bug-fix love?
Comment 33 ign_christian 2013-06-03 07:43:04 UTC
*** Bug 62611 has been marked as a duplicate of this bug. ***
Comment 34 Cor Nouws 2013-09-22 08:11:48 UTC
Hi

Can someone please help with the following :

1 - create simple one slide presentation in PowerPoint
2 - save without passWord as 
    38370_test_WithoutPassword.pps
3 - save again _with_ passWord as 
    38370_test_WithPassword.pps
4 - then remove password
    and save again as 
    38370_test_RemovedPassword.pps

Pls attacht the three files (or as one in zip).
I'll ask someone who did some digging in binaries before to have a look.
And then only the code has to be extented ;)

thanks,
Comment 35 Geraldo 2013-10-14 15:10:03 UTC
Created attachment 87604 [details]
Test file (1) - Without Password
Comment 36 Geraldo 2013-10-14 15:10:56 UTC
Created attachment 87605 [details]
Test file (2) - With Password
Comment 37 Geraldo 2013-10-14 15:12:48 UTC
Created attachment 87606 [details]
Test file (3) - Removed Password
Comment 38 Geraldo 2013-10-14 16:55:25 UTC
(In reply to comment #34)

Please see the attached files.
Comment 39 Cor Nouws 2013-10-14 21:22:37 UTC
(In reply to comment #38)
> (In reply to comment #34)
> 
> Please see the attached files.

Thanks Geraldo!
Cor
Comment 40 Cor Nouws 2014-02-04 19:16:12 UTC
Created attachment 93406 [details]
zip with dump & diff

Hi,

Being at the UX-Hackfest, Miklos was so friendly to help me with getting up with
  git://anongit.freedesktop.org/libreoffice/contrib/mso-dumper

Made an output of files
 - 38370_test_WithoutPassword.pps
 - 38370_test_RemovedPassword.pps
and a diff of the two

I'll attach the 38370_dumped_diff.zip with
 38370_without
 38370_removed
 38370_diff_removed_without


Most remarkable differences seem to me the lines
240, 288, 304

Would appreciate any specialist to step in.
thanks,
Cor
Comment 41 Cor Nouws 2014-02-04 19:19:49 UTC
@froby

See comment 31, 34, 40 : is this something within your reach pls?

thanks!
Cor
Comment 42 Valek Filippov 2014-02-04 22:04:04 UTC
(In reply to comment #41)
> @froby
> 
> See comment 31, 34, 40 : is this something within your reach pls?
> 
> thanks!
> Cor

Sure, will look into that in a day or two.
Comment 43 Valek Filippov 2014-02-05 03:15:12 UTC
First of all LO 4.1.x seems to open file with removed password without any problem here. All differences I see between "without_password" and "removed_password" are not related to passwords/security.

At second the initially attached 6 parts 7z archive CONTAINS PASSWORD PROTECTED FILE.
If you try to open it in MS Office it will ask for password and w/o password will allow to open the document as read-only.

So Rainer was right in the comment #9 -- it's an enhancement request.
Comment 44 Valek Filippov 2014-02-05 13:24:57 UTC
For potential implementor:

<caolan> I have no idea about this specific .pps/ppt encryption mechanism, but FWIW there is various shared bits, e.g. include/filter/msfilter/mscodec.hxx for the crippled rc4 stuff used in msoffice 97 which might be relevant


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.