Bug 426622 - Address bar always capitalizes first letter. Addresses should not be automatically mangled.
Summary: Address bar always capitalizes first letter. Addresses should not be automati...
Status: CONFIRMED
Alias: None
Product: dolphin
Classification: Applications
Component: bars: location (show other bugs)
Version: 20.04.3
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2020-09-16 22:56 UTC by Nathan Shearer
Modified: 2024-05-15 21:39 UTC (History)
7 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nathan Shearer 2020-09-16 22:56:45 UTC
Dolphin always capitalizes the first letter in the address bar. Addresses are case sensitive, and they should not be automatically mangled.

STEPS TO REPRODUCE
1. One Dolphin
2. Create a folder in your home called "Files"
3. In the address bar, type "fish://localhost"
4. Explicitly type in a lowercase f. You can't.

OBSERVED RESULT
Some kind of autoreplace is being triggered and is changing the first character that I typed. It is on by default, which is undesired, and cannot be disabled. Tab completion is nice, but only if it is actually changing the input when I invoke it by pressing tab. Changing the first character all the time is not what the user would ever want.

EXPECTED RESULT
Exactly the characters I type to be entered, and to never be automatically modified. If I use tab completion, by pressing tab, then I may want it to retroactively change what I already type. If I actually wanted an upper-case character to be entered, then I would have actually entered an upper-case character.

SOFTWARE/OS VERSIONS

KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.70.0
Qt Version: 5.14.2
Comment 1 Nate Graham 2020-09-17 02:50:16 UTC
That's weird. I cannot reproduce the issue using your steps.
Comment 2 Christoph Feck 2020-09-17 07:04:01 UTC
I can reproduce, but needed to restart Dolphin between steps 2 and 3.

You should be able to configure autocompetion in the address bars context menu.

Also, when you completely erase the text, an arrow menu appears to the left, where you can select 'fish:'.
Comment 3 Nathan Shearer 2020-09-17 07:56:07 UTC
I actually went back after creating the bug and attempted right-clicking on the address bar to see if there was any options hidden in there. I found the "Text Completion" menu and was able to select "None" which worked.

Can I request that the default behaviour be switched to "Dropdown List" instead of "Dropdown List & Automatic". This may confuse users, as it did me. I went into Settings -> Configure Dolphin to disable it, but I couldn't locate any options in there to disable auto-completion.

It seems unsafe to have the address bar auto-completing strings when a user is explicitly attempting to enter a string that is new but closely matches items in their history/home.

This may be exploitable as a form of clickjacking by creating executable files in the home directory that closely match items in the users history.
Comment 4 Christoph Feck 2020-09-17 12:54:23 UTC
Changing the default would only make sense if the majority of our users would agree that the default is wrong or unexpected. Unfortunately, we don't have data that indicate this.
Comment 5 Justin Zobel 2020-11-09 04:25:38 UTC
I've had this happen to me. It capitalises the first letter when a file or folder of that name exists and is also capitalised, it's part of the autocomplete.

It's annoying for me but not stopping me using Dolphin.

I would like it if it was lower case but if the greater consensus is that it should follow autocomplete then that's fine with me.

It's a UX thing more than a bug.
Comment 6 Yaroslav Sidlovsky 2021-01-20 08:54:45 UTC
I have same issue.
Tried to write URL "sftp://..." and Dolphin always replaces first letter with uppercased variant => I've got wrong URL.
Comment 7 Yaroslav Sidlovsky 2021-01-20 09:08:20 UTC
Got it.
KUrlComboBox tries to autocomplete user input.
And I have directory named "Sync" in my $HOME folder (opened in Dolphin by default).
So when I enter "s" - it tries to autocomplete "Sync", so I get uppercased first character.
Comment 8 Yaroslav Sidlovsky 2021-01-20 09:38:01 UTC
Maybe just replace case insensitive autocompletion with case sensitive?
(https://invent.kde.org/system/dolphin/-/blob/25bfe6149e729006bdad6bf2a38ebbb3fd188c8e/src/kitemviews/kfileitemmodel.cpp#L275)
Comment 9 Elvis Angelaccio 2021-03-21 16:19:21 UTC
@Yaroslav: do you feel like submitting a patch on invent? :)
Comment 10 TraceyC 2024-05-15 21:39:00 UTC
Just confirming this is still an issue with Plasma 6

Operating System: Solus 4.5
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.1.0
Qt Version: 6.6.3