Bug 87365

Summary: FILEOPEN: After opening a copy of document, opening another document closes copy/takes over window
Product: LibreOffice Reporter: tmacalp <tmacalp>
Component: LibreofficeAssignee: Not Assigned <libreoffice-bugs>
Status: NEW --- QA Contact:
Severity: normal    
Priority: medium CC: crxssi
Version: Inherited From OOo   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

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".

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.