Bug 87365 - FILEOPEN: After opening a copy of document, opening another document closes copy/takes over window
Summary: FILEOPEN: After opening a copy of document, opening another document closes c...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: Other All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-16 15:50 UTC by tmacalp
Modified: 2017-03-10 15:15 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tmacalp 2014-12-16 15:50:40 UTC
Description:
After opening a document as a copy, LibreOffice appears to treat it the same as a completely blank untitled document.  

To keep your LO windows uncluttered, when you open a document, LO will attempt to reuse a completely blank unmodified document that you currently have open.  Since you have made no changes to it, it will close your unmodified document and taking over that window.

Unfortunately, when you open a document as a copy, LO apparently isn't setting a modified flag, so LO treats it exactly as it would a blank document.  It reuses the window and clobbers your copy.

Steps to reproduce:
1. Open a file as one user
2. Attempt to open the same file as another user
3. Choose "Open Copy"
4. Immediately do File->Open and open another document (as second user)

Expected:
Both the copy of the file in use and the new file should be open, in different windows.  

Actual:
The copy has been completely lost with no way of easily reopening it.  Because it actually opened the new document, it closed our copy with no way to undo.  And because of bug 85325, it doesn't even show up under recent documents.

It's easy to work around once you know what's happening.  Simply insert a space or make any type of modification to your document, and it will be safe from clobbering.

Unfortunately, this bug has been around since before LO.  I was able to reproduce this using OpenOffice 3.2.1, so I'm setting the version to Inherited from OOo.
Comment 1 crxssi 2014-12-16 17:21:48 UTC
Never noticed this before, but I can confirm it happens under LO 4.3.4.1 under RHEL 6.  Had to open a document that someone else was working on, or with OS permissions set to read only to simulate it so I could open it as a "copy".
Comment 2 QA Administrators 2015-12-20 16:07:36 UTC Comment hidden (obsolete)
Comment 3 QA Administrators 2017-01-03 19:46:29 UTC Comment hidden (obsolete)
Comment 4 tmacalp 2017-03-10 15:15:02 UTC
I tested this again with LO 5.3.0 and wasn't able to reproduce anymore.  I believe this bug went away when the option to "Open Copy" disappeared.  LO now opens the document as read only and prompts users to enter edit mode.

Since I don't know exactly which version fixed it, I'll mark this RESOLVED:WORKSFORME.