Summary: | Inconsistency with ".." and symlinks in file open dialog | ||
---|---|---|---|
Product: | [Applications] kate | Reporter: | nfxjfg |
Component: | application | Assignee: | KWrite Developers <kwrite-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | minor | CC: | christoph, ilmari.lauhakangas |
Priority: | NOR | ||
Version First Reported In: | 16.04.1 | ||
Target Milestone: | --- | ||
Platform: | Debian unstable | ||
OS: | Linux | ||
Latest Commit: | https://commits.kde.org/kate/e762f14c520e1a1eb941dd6c8ce0201ebd4e1b8f | Version Fixed In: | |
Sentry Crash Report: |
Description
nfxjfg
2014-09-14 09:03:40 UTC
Confirmed. Arch Linux 64-bit Kate 16.04.2 KDE Frameworks 5.22.0 Qt 5.6.1 xcb wm Hmm, I just tried that with this test setup: cullmann@jibril:~$ mkdir -p test/lala cullmann@jibril:~$ ln -s test/lala/ lulu cullmann@jibril:~$ cd test/lala/ cullmann@jibril:~/test/lala$ touch 1 2 3 I opened Kate in my home directory and typed in the file dialog: lulu/../lala/1 => yes, can confirm, doesn't work :/ Git commit e762f14c520e1a1eb941dd6c8ce0201ebd4e1b8f by Christoph Cullmann. Committed on 14/07/2019 at 12:39. Pushed by cullmann into branch 'master'. proper filename canonicalization this handles symlinks in paths + .. correctly M +5 -6 addons/lspclient/lspclientserver.cpp M +14 -9 kate/katedocmanager.cpp https://commits.kde.org/kate/e762f14c520e1a1eb941dd6c8ce0201ebd4e1b8f Btw., thanks for the detailed report! Thanks. Strangely, it doesn't work if the second path component starts with a ".". For example, creating a symlink to some other directory in the home directory, entering though this symlink in the file open dialog, and trying to open "../.config/katerc" shows a file not found warning dialog, even though the file exists. But this warning dialog is created by the Qt file dialog (which qt5ct forces instead of the KDE dialog for who knows which reason), so this isn't kate's problem. Independent of that, is there any chance that the behavior could be changed _not_ to expand symlinks in any situation? I think not expanding symlink leads to a lot of other problems like duplicated opened files, as at the moment many parts assume the "url" is canonical. I would not really want to touch that. |