Bug 447596

Summary: sftp kioslave can't access subdirectories of hidden directories with a name of size 2
Product: [Applications] dolphin Reporter: Salvo "LtWorf" Tomaselli <tiposchi>
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: REPORTED ---    
Severity: normal CC: kfm-devel
Priority: NOR    
Version: 21.08.2   
Target Milestone: ---   
Platform: Debian unstable   
OS: Linux   
Latest Commit: Version Fixed In:

Description Salvo "LtWorf" Tomaselli 2021-12-28 08:41:32 UTC
SUMMARY

The sftp kioslave can't access subdirectories of hidden directories with really short names.

They disappear from the path.

I tried with hidden directories with longer names and they seem to work fine, so the problem appears when they have short names.

STEPS TO REPRODUCE
1.  Have ssh server
2.  Configure server to use only key authentication and use port 12345 instead of 22 (don't know if this is relevant to reproduce)
3. run `mkdir -p .q/lalalala` on said ssh server
4. Open dolphin
5. Enter in dolphin `sftp://username@server:12345`
6. Wait for it to connect
7. Append `.q` in address bar to the address
8. Click on the lalalala directory

OBSERVED RESULT

The ".q" part is deleted from the path and the remaining is something like `sftp://username@server:12345/home/salvo//lalalala` (notice the double /)


EXPECTED RESULT

For the path to not drop parts.

SOFTWARE/OS VERSIONS
Debian unstable