| Summary: | Folder View applet fails to browse folders whose names end with a space | ||
|---|---|---|---|
| Product: | [Plasma] plasmashell | Reporter: | AndyKluger |
| Component: | Desktop icons & Folder View widget | Assignee: | Eike Hein <hein> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | AndyKluger, kde, nate, plasma-bugs-null |
| Priority: | NOR | Keywords: | usability |
| Version First Reported In: | 5.15.5 | ||
| Target Milestone: | 1.0 | ||
| Platform: | Other | ||
| OS: | Linux | ||
| URL: | https://bugreports.qt.io/browse/QTBUG-81643 | ||
| Latest Commit: | Version Fixed/Implemented In: | 6.2.0 | |
| Sentry Crash Report: | |||
|
Description
AndyKluger
2019-05-17 23:04:04 UTC
It ends up running the url through QUrl::fromUserInput which strips spaces as it is meant for user input in an address bar. It probably shouldn't use fromUserInput when the URL comes from a trusted source (the model). There are two bugs here. First of all, the text field doesn't accept input that ends with a space. Second of all, the directory chooser dialog returns incorrect output when told to select a folder whose name that ends with a space. I've submitted a patch to fix the first issue: https://phabricator.kde.org/D26881 That patch will at least allow manual entry into the text field, even though the directory chooser dialog will still be broken. For that, I've filed https://bugreports.qt.io/browse/QTBUG-81643 Can't reproduce this in git master. Looks like it got fixed somewhere along the way. |