Summary: | FILEOPEN: Encrypted docx round trip fails between Libre Office and Word | ||
---|---|---|---|
Product: | LibreOffice | Reporter: | rlusian1 |
Component: | Writer | Assignee: | Not Assigned <libreoffice-bugs> |
Status: | RESOLVED WORKSFORME | QA Contact: | |
Severity: | normal | ||
Priority: | medium | CC: | philipz85 |
Version: | 4.2.2.1 release | ||
Hardware: | Other | ||
OS: | Windows (All) | ||
Whiteboard: | BSA | ||
i915 platform: | i915 features: | ||
Attachments: | demo files for bug 76873 |
Description
rlusian1
2014-04-01 00:37:12 UTC
I cant reproduce this on the latest release of 4.2.4. I had attempted to save the password protected file from within LibreOffice, but word 2010 couldnt open it (bug 79476). Please send us a sample of the file you edited in Word 2010 but cant reopen in LibreOffice, so we can test it. Created attachment 100852 [details] demo files for bug 76873 Comment on attachment 100852 [details] demo files for bug 76873 I can reproduce this in 4.2.2.1, but not in 4.2.4.2. It looks like the problem has been fixed. Writer 4.2.2.1 fails to open the files in both cases after the document has been edited by LO and then subsequently by Word. Writer 4.2.4.2 works properly. Thus it looks like the file opening problem has definitely been fixed. This time I saved the files in case anyone wants to see them. I'm sure the Office XML format is pretty tricky. There is an interesting change in metadata when an Office-created file is edited in LO, that may be of interest. Look at the differences between OfficeCreatedPasswordProtectedFile1.docx and OfficeCreatedPasswordProtectedFile2.docx ---- The password for all files is: password Windows 7 Enterprise Service Pack 1 Microsoft Office 2010 Version 14.0.7116.6000 (32-bit) LibreOffice Writer Version 4.2.4.2 With 4.2.4.2: Created the OfficeCreatedPasswordProtectedFile1.docx in Word and saved with password protection (open only). Opened the file successfully in Libre Office, but did not change it. Copied file to OfficeCreatedPasswordProtectedFile2.docx. Opened file in Libre office, added a second entry, saved file in Microsoft Word 2007/2010/2013 XML format. Opened file successfully in Word. Opened file successfully in Libre Office. **NOTE, HOWEVER, THE DIFFERENCE IN FILE METADATA - LOOK IN A TEXT EDITOR** Copied file to OfficeCreatedPasswordProtectedFile3.docx Opened file successfully in Word, added a third entry, saved file. Opened file successfully in Libre Office. Copied file to OfficeCreatedPasswordProtectedFile4.docx Opened file in Libre office, added a fourth entry, saved file in Microsoft Word 2007/2010/2013 XML format. Opened file successfully in Word. Opened file successfully in Libre Office. Copied file to OfficeCreatedPasswordProtectedFile5.docx Opened file successfully in Word, added a third entry, saved file. Opened file successfully in Libre Office. Created the LibreOfficeCreatedPasswordProtectedFile1.docx in Libre Office and file in Microsoft Word 2007/2010/2013 XML format with password protection. Opened the file successfully Word, but did not change it. Copied file to LibreOfficeCreatedPasswordProtectedFile2.docx. Opened file successfully in Word, added a second entry, saved file. Opened file successfully in Libre Office. Copied file to LibreOfficeCreatedPasswordProtectedFile3.docx Opened file successfully in Libre Office, added a third entry, saved file. Opened file successfully in Word. Copied file to OfficeCreatedPasswordProtectedFile4.docx Opened file in Word, added a fourth entry. Opened file successfully in Word. Opened file successfully in Libre Office. With 4.2.2.1, I followed the same basic approach, but when the document is edited by Word after LO has edited it, LO can't read the doc properly. I stopped that test after it was clear the 4.2.2.1 code was showing the bug. I can reproduce this in 4.2.2.1, but not in 4.2.4.2. It looks like the problem has been fixed. Writer 4.2.2.1 fails to open the files in both cases after the document has been edited by LO and then subsequently by Word. Writer 4.2.4.2 works properly. Thus it looks like the file opening problem has definitely been fixed. This time I saved the files in case anyone wants to see them. I'm sure the Office XML format is pretty tricky. There is an interesting change in metadata when an Office-created file is edited in LO, that may be of interest. Look at the differences between OfficeCreatedPasswordProtectedFile1.docx and OfficeCreatedPasswordProtectedFile2.docx ---- The password for all files is: password Windows 7 Enterprise Service Pack 1 Microsoft Office 2010 Version 14.0.7116.6000 (32-bit) LibreOffice Writer Version 4.2.4.2 With 4.2.4.2: Created the OfficeCreatedPasswordProtectedFile1.docx in Word and saved with password protection (open only). Opened the file successfully in Libre Office, but did not change it. Copied file to OfficeCreatedPasswordProtectedFile2.docx. Opened file in Libre office, added a second entry, saved file in Microsoft Word 2007/2010/2013 XML format. Opened file successfully in Word. Opened file successfully in Libre Office. **NOTE, HOWEVER, THE DIFFERENCE IN FILE METADATA - LOOK IN A TEXT EDITOR** Copied file to OfficeCreatedPasswordProtectedFile3.docx Opened file successfully in Word, added a third entry, saved file. Opened file successfully in Libre Office. Copied file to OfficeCreatedPasswordProtectedFile4.docx Opened file in Libre office, added a fourth entry, saved file in Microsoft Word 2007/2010/2013 XML format. Opened file successfully in Word. Opened file successfully in Libre Office. Copied file to OfficeCreatedPasswordProtectedFile5.docx Opened file successfully in Word, added a third entry, saved file. Opened file successfully in Libre Office. Created the LibreOfficeCreatedPasswordProtectedFile1.docx in Libre Office and file in Microsoft Word 2007/2010/2013 XML format with password protection. Opened the file successfully Word, but did not change it. Copied file to LibreOfficeCreatedPasswordProtectedFile2.docx. Opened file successfully in Word, added a second entry, saved file. Opened file successfully in Libre Office. Copied file to LibreOfficeCreatedPasswordProtectedFile3.docx Opened file successfully in Libre Office, added a third entry, saved file. Opened file successfully in Word. Copied file to OfficeCreatedPasswordProtectedFile4.docx Opened file in Word, added a fourth entry. Opened file successfully in Word. Opened file successfully in Libre Office. With 4.2.2.1, I followed the same basic approach, but when the document is edited by Word after LO has edited it, LO can't read the doc properly. I stopped that test after it was clear the 4.2.2.1 code was showing the bug. |
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.