Created attachment 131776 [details] screenshot STEPS TO REPRODUCE 1. open Kate text editor 2. type anything and press ctrl+s 3. set file name to "file".txt and press enter/return OBSERVED RESULT the file is not save and an error message says "You can only select one file". See the attached screenshot please. EXPECTED RESULT the file sohuld be saved SOFTWARE/OS VERSIONS Operating System: KDE neon Unstable Edition KDE Plasma Version: 5.19.90 KDE Frameworks Version: 5.75.0 Qt Version: 5.15.0
Heh, can confirm.
this concerns saving contrary to https://bugs.kde.org/show_bug.cgi?id=185433
*** Bug 473764 has been marked as a duplicate of this bug. ***
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kio/-/merge_requests/1396
Git commit a2b5765f64c7a38a683611654e4d0a61de87ef1a by Méven Car, on behalf of Andreas Bontozoglou. Committed on 02/09/2023 at 14:59. Pushed by meven into branch 'master'. [kfilewidget] Fixing saving to files with quotes - Escaping double quotes in KFileWidgetPrivate::setLocationText(QUrl) - Adding a test for single-file mode (KFile::File) M +108 -0 autotests/kfilewidgettest.cpp M +1 -2 src/filewidgets/kfilewidget.cpp https://invent.kde.org/frameworks/kio/-/commit/a2b5765f64c7a38a683611654e4d0a61de87ef1a
Git commit 5812fda982480942b8747fb639fdc654b5fa56da by Nate Graham, on behalf of Andreas Bontozoglou. Committed on 11/09/2023 at 17:48. Pushed by ngraham into branch 'kf5'. [kfilewidget] Fixing saving to files with quotes - Escaping double quotes in KFileWidgetPrivate::setLocationText(QUrl) - Adding a test for single-file mode (KFile::File) (cherry picked from commit 6a5736ce30494f6deab3489725815a7d33e1bacf) M +108 -0 autotests/kfilewidgettest.cpp M +1 -1 src/filewidgets/kfilewidget.cpp https://invent.kde.org/frameworks/kio/-/commit/5812fda982480942b8747fb639fdc654b5fa56da
This bug is still reproducible Arch Linux and neon unstable. Operating System: Arch Linux KDE Plasma Version: 5.27.8 KDE Frameworks Version: 5.111.0 Qt Version: 5.15.11 Graphics Platform: Wayland
Can also reproduce again. >:(
Aaand fixed for me again.
it's still reproducible on my system. Operating System: Arch Linux KDE Plasma Version: 6.3.2 KDE Frameworks Version: 6.11.0 Qt Version: 6.8.2 Graphics Platform: Wayland
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kio/-/merge_requests/1834
Git commit b8db3079308d9f5e2141326e07f0bbd73bb2c0e9 by Akseli Lahtinen. Committed on 18/03/2025 at 20:13. Pushed by akselmo into branch 'master'. KFileWidget: Allow saving single file with double quotes The tokenizer would previously remove any and all double quotes, so saving with them would be impossible. In cases where we're saving only one file, make sure to escape the double quotes for the tokenizer to know they should be kept around M +3 -0 autotests/kfilewidgettest.cpp M +2 -1 src/filewidgets/kfilewidget.cpp https://invent.kde.org/frameworks/kio/-/commit/b8db3079308d9f5e2141326e07f0bbd73bb2c0e9