https://bugs.kde.org/show_bug.cgi?id=465762
Bug ID: 465762 Summary: kate overwrites symlinks as regular files Classification: Applications Product: kate Version: 21.12.3 Platform: Ubuntu OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: general Assignee: kwrite-bugs-n...@kde.org Reporter: ad...@infosky.ro Target Milestone: --- SUMMARY *** When using Kate to edit a file (in my example, on an SFTP connection in Dolphin), if I edit a file which is a symlink (relative path) to the real file, when I open the symlink it correctly reads the original file (the symlink's target) and imports the contents in the Kate window. But, when I make modifications, the symlink gets overwritten by a regular file which contains my modificaitons, but it is a separate file. Inspecting the original file (the symlink's target) does not reveal the modifications. Other programs, such as LibreOffice, automatically save to the correct target file, even if opening and editing the Symlink. *** STEPS TO REPRODUCE 1. Open an SFTP connection to a remote folder 2. Create a regular TXT file and edit something in it 3. In another directory on the remote SFTP server, create a Symbolic Link to the regular TXT file 4. When browsing on the remote folder, open the symbolic link with Kate. It should open the contents of the regular TXT file 5. Try to modify something in the file and Save 6. Upon save, KDE/Kate will replace te symbolic link with a regular TXT file containing the modificaitons. (the original TXT file will not be modified) OBSERVED RESULT Upon save, KDE/Kate will replace te symbolic link with a regular TXT file containing the modificaitons. (the original TXT file will not be modified) EXPECTED RESULT Upon save, KDE/Kate should retain the symbolic link and the modifications should be visible in the original target file of the symlink. SOFTWARE/OS VERSIONS Windows: - macOS: - Linux/KDE Plasma: Kubuntu 22.04.1 LTS (available in About System) KDE Plasma Version: 5.24.7 KDE Frameworks Version: 5.92.0 Qt Version: 5.15.3 ADDITIONAL INFORMATION -- You are receiving this mail because: You are watching all bug changes.