Bug 501701

Summary: Opening files (tested with text files) that are symlinks using KIO SFTP is broken
Product: [Frameworks and Libraries] kio-extras Reporter: PhobosK <phobosk>
Component: SFTPAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: john.kizer
Priority: NOR    
Version First Reported In: 24.12.3   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description PhobosK 2025-03-18 18:19:36 UTC
SUMMARY
If one opens a remote location and chooses to open for example a text file which is symlink, the file is opened but only the first 2 lines are shown. Thus neither in krusader, nor in dolphin this works properly.
This problem is not existent if using fish:// for the same remote location.
This problem did not exist a few versions ago (i cannot say when it broke)

STEPS TO REPRODUCE
1. Connect to a remote host using sftp:// in krusader for example.
2. Choose a text file that is a symlink to open. For example /etc/systemd/system/dbus-org.freedesktop.network1.service (which is a symlink to /usr/lib/systemd/system/systemd-networkd.service)
3. Only the first 2 lines are shown and the second line is not even fully shown.

OBSERVED RESULT
Only the first 2 lines are shown and the second line is not even fully shown.
Previews in dolphin are also broken (showing only two lines)

EXPECTED RESULT
The full file to be shown.

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20250316
KDE Plasma Version: 6.3.3
KDE Frameworks Version: 6.11.0
Qt Version: 6.8.2
Comment 1 John Kizer 2025-03-28 06:34:08 UTC
Hi - merging this in with the existing bug report for this issue. Thanks!

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