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: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Libreoffice (show other bugs)
Version: Inherited From OOo
Hardware: Other All
: medium normal
Assignee: Not Assigned
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-16 15:50 UTC by tmacalp
Modified: 2014-12-16 17:21 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

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.