Issue 126643 - Saving old MS Word docs without making them read-only
Summary: Saving old MS Word docs without making them read-only
Status: UNCONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: save-export (show other issues)
Version: 4.1.2
Hardware: PC Windows 7
: P5 (lowest) Major (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-11 16:11 UTC by caribconsult
Modified: 2016-09-22 19:52 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
MS Word document in 97-2003 format with a password of 'password' (21.50 KB, application/msword)
2016-04-10 03:09 UTC, lamh888
no flags Details
OpenOffice version of the MS Word document (9.60 KB, application/vnd.oasis.opendocument.text)
2016-04-10 03:11 UTC, lamh888
no flags Details
Method 1 and 2 result (255.48 KB, image/png)
2016-09-22 19:51 UTC, danielyo
no flags Details
Method 3 result (276.57 KB, image/png)
2016-09-22 19:52 UTC, danielyo
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description caribconsult 2015-11-11 16:11:12 UTC
I have an old MS-Word file containing on-line user ID's and passwords. Naturally it is password protected. I opened it with OpenOffice Writer, entered the password and saved it as an OpenOffice document, and when I opened it again in OpenOffice, it came up as 'read-only' and would not let me change this. I wound up copying it and pasting the contents into a new OpenOffice document and now it works normally. 

Is there a bug here? Does it have anything to do with the fact that the original file was password protected?  I have opened other old MSWord docs not password protected and saved them into OOWriter format and not seen this same issue.
Comment 1 Marcus 2015-11-11 18:07:50 UTC
Have you tried the [Edit File] button (somewhat right to the [Save] icon)? It's possible that just the view went to the read-only mode. But when pressing the icon you can go back to the edit mode.
Comment 2 lamh888 2016-04-10 03:09:04 UTC
Herman L, April 9, 2016

Hardware: PC
OS: Windows 7
Writer version: 4.1.2

I was able to reproduce this bug, using the same version of Writer. 

I used an MS Word document that was saved as 97-2003 format and included a password. When I opened this file in Writer, and performed a "Save As" action without a password and saved it as an .odt file, I found that upon re-opening it, I wasn't able to edit the file as it was set to be read-only.


Steps to Reproduce: 
1) Create MS Word document, with password protection, and save it as an older format "Word 97-2003 Document (*.doc), if none available (see attachment)
2) Open this file in OpenOffice Writer
3) Enter password, when prompted ("password" for attached file).
4) With the MS Word document open, select "Save As" from the "File" menu.
5) Select "ODF Text Document (.odt)(*.odt)" from the "Save as Type" dropdown list 
6) Deselect "Save with password" checkbox and save.
7) Close the saved file and reopen it in Writer
8) Click the "Edit File" icon, if it is not already selected
9) Enter text into the document and note error message.


Actual Results:
The Writer version of the file is not editable. When the user tries to edit the contents of the document, an error message is displayed stating that "Readonly content cannot be changed. No modifications will be accepted".

Expected Results:
The file is editable.

Build Date & Platform:
2015-10-21 build on Windows 7
Comment 3 lamh888 2016-04-10 03:09:50 UTC
Created attachment 85400 [details]
MS Word document in 97-2003 format with a password of 'password'

This was the file used as input for the test
Comment 4 lamh888 2016-04-10 03:11:01 UTC
Created attachment 85401 [details]
OpenOffice version of the MS Word document

This is the file that was generated after following all the steps. The file contents aren't editable even after the "Edit File" icon was clicked on.
Comment 5 danielyo 2016-09-22 19:45:23 UTC
I attempted to replicate this bug with the following methods using the MS Word document in 97-2003 attachment:

OS: Mac OSX 10.11.6
Writer version: 4.1.2

Test 1:(replicated successfully)
1. Open the file using OpenOffice Writer
2. Entered the password (it loaded as read-only)(pic)
3. Re save the file as .odt (pic)
4. Make sure the “Read-Only” checkbox is not filled in
5. Close current file and open the newly saved file
6. Came across the error “Readonly content cannot be changed. No modifications will be accepted.”

Test 2:(replicated successfully)
1. Open the file using OpenOffice Writer
2. Entered the password (it loaded as read-only)(pic)
3. Re save the file as .odt (pic)
4. Filled in the password for Editing as well as viewing
5. Close current file and open the newly saved file
6. Came across the same error

Test 3:(workaround)
1. Open the file using MS word doc
2. Make small edit and save the file
3. Open in Open office (no longer loads as read-only)
4. Save-as .odt file
5. Close current file and open the newly saved file
6. Newly file is now editable

Not sure if this is a bug with conversion from old MS-word to ODT, but it seems that you can avoid this bug by making an edit in MS-word and then opening it in OO.
Comment 6 danielyo 2016-09-22 19:51:22 UTC
Created attachment 85691 [details]
Method 1 and 2 result

Expected result: editable file

Actual result: read only file
Comment 7 danielyo 2016-09-22 19:52:23 UTC
Created attachment 85692 [details]
Method 3 result

Result of method 3

expected result: editable file

actual result: editable file