Bug 79307 - FILEOPEN: DOCX - Word 2007 password protected files not opening
Summary: FILEOPEN: DOCX - Word 2007 password protected files not opening
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected)
Inherited From OOo
Hardware: Other All
: high normal
Assignee: Not Assigned
Whiteboard: interoperability
Keywords: filter:docx
Depends on:
Blocks: DOCX-Opening OOXML-2007 Password-Protected
  Show dependency treegraph
Reported: 2014-05-27 13:11 UTC by Yousuf Philips (jay) (retired)
Modified: 2017-09-02 09:56 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:

word 2007 encrypted docx file - password is pass1234 (16.50 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2014-05-27 13:11 UTC, Yousuf Philips (jay) (retired)

Note You need to log in before you can comment on or make changes to this bug.
Description Yousuf Philips (jay) (retired) 2014-05-27 13:11:21 UTC
Created attachment 99944 [details]
word 2007 encrypted docx file - password is pass1234

After comment 1 of bug 76813, i decided to do some testing of password protected docx files from Word 2007, 2010 and 2013. The result is that on Linux Mint with the latest releases of LibO 3.6 - 4.2 and 4.3 beta, and none will open Word 2007 password encrypted files as it complains that the password is incorrect. If you click cancel, the file will load filled with characters like �, #, and >.
Comment 1 sophie 2014-05-27 13:33:36 UTC
Confirmed in and beta1 on Ubuntu 14.04 - Set as New - Sophie
Comment 2 Yousuf Philips (jay) (retired) 2014-05-27 13:41:57 UTC
Thanks sophie. Also if you attempt to open protected file through the start center and click cancel, the mouse cursor will be stuck on busy.
Comment 3 Riccardo Vianello 2014-05-27 15:07:03 UTC
I confirm this issue for Windows 8 Pro.

With product Beta 1.
Comment 4 Riccardo Vianello 2014-05-27 15:39:32 UTC
Description: When i download this docx with password "pass1234", on the my computer, I click on the "Open" on the main menu of the program, 
When the "Password" field is shown, I put into this field "pass1234", but if i click on the "Ok" button, a message error is shown where i put a wrong password.
If i click on the "Cancell" button, the document is showed, but there is a special  characters. #####, bbbyyy.

Step by Step:
1)I dowload this attachment into my computer
2)I load the my program Beta 1
3)I click on the "File" menu where the program shows a submenu and i click on the "Open"
4)I choose the document protected by password 
5)The document is loading but the program shows a new popup where I must enter a new password
6)I write this password "pass1234" and i click on the "Ok" button but the message shows is a wrong
7)If i click on the "Cancel" button, the document it's open but into the description there are different special characters like �, #, and >.

SO:Windows 8 Pro
Size Monitor:1366x768
Monitor: AMD Radeon HD 7670
Language: Italian/ all language
Version document: beta 1

Video 1 => https://www.youtube.com/watch?v=HzMN4YAGxgg&feature=youtu.be
Comment 5 Yousuf Philips (jay) (retired) 2014-05-27 17:17:00 UTC
what program did you use for the recording Riccardo.
Comment 6 Tomaz Vajngerl 2014-05-29 11:01:14 UTC
"pass1234" is not a correct password - MS Word 2013 also doesn't open the file with this password.
Comment 7 Yousuf Philips (jay) (retired) 2014-05-29 21:35:22 UTC
Just retested opening the file in word 2007 and 2010 and it opened fine. Tested it on word 2013 and it gave an open error.
Comment 8 Björn Michaelsen 2014-08-21 12:21:09 UTC Comment hidden (obsolete)
Comment 9 Julien Nabet 2014-12-14 21:52:29 UTC
I tried to unzip with unzip 6.0 and had this:
Archive:  test.zip
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of test.zip or
        test.zip.zip, and cannot find test.zip.ZIP, period.
I can't unzip too on Win7 when just renaming the docx on zip. However, I can read the content with 7zip.
But perhaps it shouldn't prevent LO to open this.
Comment 10 Tomaz Vajngerl 2014-12-15 03:22:25 UTC
An encrypted Word 2007 document is a OLE storage which contains an (custom) encrypted ZIP file so no ZIP program should be able to unzip it. Interesting that you were able to read the content with 7zip.
Comment 11 QA Administrators 2015-12-20 16:05:39 UTC Comment hidden (obsolete)
Comment 12 MM 2016-04-24 23:25:59 UTC
Confirmed with v3.3.4 under windows 7 x64.
Confirmed with v5.1.2.2 under ubuntu 14.04 x64.
Comment 13 Telesto 2016-11-25 19:30:18 UTC
Conforming with:
Build ID: 690f553ecb3efd19143acbf01f3af4e289e94536
CPU Threads: 4; OS Version: Windows 6.2; UI Render: default; Layout Engine: new; 
Locale: nl-NL (nl_NL); Calc: CL
Comment 14 Menno 2017-01-01 18:25:29 UTC
I can confirm this bug. I created a password protected docx with LO and then find  I can not open it again.

Build ID: 420m0(Build:2)

Using on Ubunty Trusty with KDE on a Chromebook (through crouton)
Comment 15 Yousuf Philips (jay) (retired) 2017-09-02 09:56:58 UTC
I'm unable to repo this anymore and newly created password protected files open fine in LO.