Bug 496837 - Kate opening blank file when it is not blank
Summary: Kate opening blank file when it is not blank
Status: RESOLVED DUPLICATE of bug 449020
Alias: None
Product: kate
Classification: Applications
Component: application (show other bugs)
Version: 24.11.90
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-11-29 14:49 UTC by solomoncyj
Modified: 2024-12-05 17:27 UTC (History)
1 user (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 solomoncyj 2024-11-29 14:49:46 UTC
***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports

Please remove this comment after reading and before submitting - thanks!
***

SUMMARY
kate opeing empty file even with data in it

STEPS TO REPRODUCE
1.  kate /boot/grub2/grub.cfg


OBSERVED RESULT
 empty file opend

EXPECTED RESULT

file populatred with grub script
SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 41
KDE Plasma Version: 6.2.3
KDE Frameworks Version: 6.8.0
Qt Version: 6.8.0
Kernel Version: 6.11.8-300.fc41.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i7-4510U CPU @ 2.00GHz
Memory: 15,0 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 4400
Manufacturer: Hewlett-Packard
System Version: A3009C510002

ADDITIONAL INFORMATION
Comment 1 John Kizer 2024-12-05 06:47:19 UTC
Hi - on my Fedora 41 system, /boot/grub2/grub.cfg can only be read by root:

$ sudo ls -la /boot/grub2/grub.cfg
-rw-------. 1 root root 6891 Dec  1 16:28 grub.cfg

Can you please confirm if, on your system, /boot/grub2/grub.cfg is a file that should be readable by a standard user account? (Otherwise, there would be no way for Kate to be able to open it as your standard user)
Comment 2 solomoncyj 2024-12-05 08:04:24 UTC
kate should escalate if it needs perms
Comment 3 John Kizer 2024-12-05 17:27:54 UTC
I see - thanks for explaining, as that's a different Expected Result than what was originally described in the bug report.

What you're saying makes sense, and I'm merging this in with the existing bug report for the situation of Kate prompting for escalation when it has insufficient permissions when opening a file. To note, this seems to only apply when it is launched from the command line - I could not reproduce this bug when opening from the Dolphin "temporarily work as an administrator" mode.

*** This bug has been marked as a duplicate of bug 449020 ***