Bug 479546

Summary: can't open any files from dolphin on sftp if the username is not specified
Product: [Frameworks and Libraries] kio-extras Reporter: renner0
Component: SFTPAssignee: Plasma Bugs List <plasma-bugs-null>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: 23.08.4   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description renner0 2024-01-08 19:26:26 UTC
If you open a file from a sftp server from dolphin you have to specify the username of the connection to open the files. Browsing works just fine.
Even though I configured it so I don't have to type any username in ssh config.

kioclient exec "sftp://username@homeserver/home/username/example.txt" works

kioclient exec sftp://homeserver/home/username/example.txt does not work, though you can browse the files correctly. Opening the file does not yield in any error message other than:
kf.service.services: KApplicationTrader: mimeType "x-scheme-handler/sftp" not found

STEPS TO REPRODUCE
1. Create Entry in ~/.ssh/config specifying username and hostname
2. Use the "shortcut" in dolphin with sftp://homeserver/home/username/
3. open file from dolphin

OBSERVED RESULT
does not open the file

EXPECTED RESULT
opens the file

Linux/KDE Plasma: Fedora Kinoite 39
KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.111.0
Qt Version: 5.15.11
kio-extras-23.08.4-1.fc39.x86_64

ADDITIONAL INFORMATION

just ssh homeserver works
relevant entry in ~/.ssh/config

Host homeserver
  HostName myhomeserver.com # domain that points to internal IP of local network
  User username
  PreferredAuthentications publickey
  IdentitiesOnly yes
  IdentityFile ~/.ssh/homeserver

Let me know if I can provide any log files or something like that