Bug 93630 - FILEOPEN: Reload reopens a read-only file as read-write
Summary: FILEOPEN: Reload reopens a read-only file as read-write
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: framework (show other bugs)
Version:
(earliest affected)
5.0.0.5 release
Hardware: All All
: medium minor
Assignee: Stephan Bergmann
URL:
Whiteboard: target:5.3.0
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-24 19:12 UTC by Curt M
Modified: 2016-08-24 13:19 UTC (History)
2 users (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 Curt M 2015-08-24 19:12:21 UTC
I had been using Calc 4.x to view automated test reports in CSV format, since I could open them as read-only and do a quick "reload" after a new one had been generated.

In calc 4.x, the file was still read-only after doing "reload".
In Calc 5.0.0, the file is opened normally (read/write) after the reload.
Comment 1 Maxim Monastirsky 2015-08-25 08:08:26 UTC
Side effect of:

commit a199cad8376a5470c50125def2738b44b55ec018
Author: Stephan Bergmann <sbergman@redhat.com>
Date:   Mon Apr 27 11:35:55 2015 +0200

    tdf#65498, tdf#87545: Don't confuse logically r/o doc with physically r/o

@Stephan: Could you have a look, please?
Comment 2 Travis 2016-08-14 04:35:46 UTC
I am also having this issue with Version 5.2.0.4 of calc on windows 10.

I use file->open then check read-only. shows (read-only) in window tile bar.

I run external script that changes the file.

I then do file->reload, the file does reload with the new changes but the (read-only) in the title bar is gone and the file is back to write mode which then blocks my script from writing changes to that file.

tested with same result in writer.
Comment 3 Commit Notification 2016-08-24 13:18:58 UTC
Stephan Bergmann committed a patch related to this issue.
It has been pushed to "master":

http://cgit.freedesktop.org/libreoffice/core/commit/?id=191c0a9e7719b777146430486d703641aaff43bf

tdf#93630: Remember whether a doc was originally requested to be opened r/o

It will be available in 5.3.0.

The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
http://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.