Bug 364429 - Should reset "readonly" flag on "save as"
Summary: Should reset "readonly" flag on "save as"
Status: RESOLVED INTENTIONAL
Alias: None
Product: kate
Classification: Applications
Component: application (show other bugs)
Version: 16.04.1
Platform: Debian testing Linux
: NOR minor
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-17 18:16 UTC by Victor Porton
Modified: 2016-09-06 15:36 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Victor Porton 2016-06-17 18:16:23 UTC
When I "save as" a file for which I've set readonly flag, after save it remains readonly.

I don't see a sense in this. The readonly flag was to protect the original file (which may be mission critical and should not change), but I see no reason for the newly saved file to remain readonly.

Reproducible: Always
Comment 1 Buovjaga 2016-07-11 10:42:36 UTC
I tested this by setting a file to be read only for owner. When I saved it under a new name, the new file had also write access for owner.

Arch Linux 64-bit
Kate 16.04.2
KDE Frameworks 5.23.0
Qt 5.7
xcb wm
Comment 2 Christoph Cullmann 2016-09-06 15:36:01 UTC
The read-only flag we have and "read-only" on disk have no connection.
Therefore to reset it makes no sense, if you mark a document as read-only that sticks until you decide otherwise, per design.
For "read-only" on disk, we should show some indication, too, which would go away on save as, but that is bug 366727.