| Summary: | No way to elevate read permissions when opening a file | ||
|---|---|---|---|
| Product: | [Frameworks and Libraries] frameworks-ktexteditor | Reporter: | Szczepan Hołyszewski <rulatir> |
| Component: | general | Assignee: | KWrite Developers <kwrite-bugs-null> |
| Status: | CONFIRMED --- | ||
| Severity: | wishlist | CC: | christoph, john.kizer, solomoncyj |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Szczepan Hołyszewski
2022-01-23 16:41:54 UTC
Bitten by this again. This issue is an Intercontinental Ballistic Footgun. There MUST be SOME indication of a problem when I try to OPEN a file to which I don't have read access and get a blank buffer. Current behavior is DANGEROUS. As of 2023.04.3 there is an in-window notification about insufficient permissions to read the file. This is better than no warning at all, but I still think that proper permission elevation should be supported. An error is now there, but it would be nicer to not have only elevated rights for saving. *** Bug 496837 has been marked as a duplicate of this bug. *** I can reproduce on Fedora 41. For what it's worth, there also does not appear to be an error message if Kate is launched from the command line in the situation described above (or when you have neither read to the file nor execute to the directory, like in /boot/grub2 on Fedora), as opposed to trying to open from within the Kate GUI. |