Bug 80777 - FILEOPEN: if a read-write file is attempted to be opened in read-only, nothing happens
Summary: FILEOPEN: if a read-write file is attempted to be opened in read-only, nothin...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: UI (show other bugs)
Version:
(earliest affected)
3.6.7.2 release
Hardware: Other All
: low enhancement
Assignee: Not Assigned
URL:
Whiteboard: BSA
Keywords:
Depends on:
Blocks: Read-Only
  Show dependency treegraph
 
Reported: 2014-07-02 00:05 UTC by pb
Modified: 2018-10-19 12:48 UTC (History)
0 users

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 pb 2014-07-02 00:05:15 UTC
I only tested this with Calc and xls files.

1.  Open a file in read-write mode (the default).
2.  Next, choose File > Open from menu.
3.  Check the "read-only" box in the open file dialog.
4.  Select the same file that is already open read-write.
5.  Click "Open."

Result:  Nothing.  In particular, there is no indication that the file has changed state to read-only.  I say this based on no such indicator in the window title, and no graying-out of editing buttons.  (I have not checked the actual status of the file handle.)

Expected result:  Mode of that file should toggle from read-write to read-only, probably with a warning that changes might be lost.  That is what the very old version of Excel that I use does.
            
Operating System: Windows 7
Version: 4.2.5.2 release
Comment 1 ign_christian 2014-07-03 03:23:41 UTC
Confirmed with LO 3.6.7.2, 4.2.5.2, 4.3.0.1 - Ubuntu 12.04 x86

Rare case, we can close the file first before reopening same file in read-only mode, but it's a misfunction
Comment 2 Justin L 2018-10-19 12:48:38 UTC
I tested writer and calc. In both cases, if the file was already open, then trying to open it again in read-only mode did nothing - the file remained in read-write mode.