Bug 502813

Summary: URL navigator triggered autofs mount resets URL navigator state
Product: [Frameworks and Libraries] frameworks-kio Reporter: Eduard <e.bachmakov>
Component: URL navigatorAssignee: KIO Bugs <kio-bugs-null>
Status: REPORTED ---    
Severity: normal CC: kdelibs-bugs-null
Priority: NOR    
Version First Reported In: 6.12.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Eduard 2025-04-14 23:29:02 UTC
SUMMARY
When navigating into a subdirectory of an autofs mount which would trigger the "real" mount, the real mount is triggered but URL navigator resets navigation state.

STEPS TO REPRODUCE
1. Mount autofs on `/smb/myremotehost/` which manages shares like `/smb/myremotehost/myshare` 
2. Open Dolphin or the load/save dialog
3. Type `/smb/myremotehost/myshare` and then
4. Type `/`

OBSERVED RESULT
After step 4., in the "remote" section of "the sidebar", an entry `/smb/myremotehost/myshare` appears. The URL navigator is reset to `/home/myuser/` but DOES display a dropdown relative to `/smb/myremotehost/myshare/`.

EXPECTED RESULT
After step 4., in the "remote" section of "the sidebar", an entry `/smb/myremotehost/myshare` appears. The URL navigator shows `/smb/myremotehost/myshare/` (note the trailing slash) with the cursor behind that slash. A dropdown relative to `/smb/myremotehost/myshare/` is displayed


SOFTWARE/OS VERSIONS
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.12.0
Qt Version: 6.8.2

ADDITIONAL INFORMATION
I assume that after typing the slash there's an attempt to autocomplete so some readdir() is triggering the mount. This is reasonable. But some feedback channel that picks up on this new mount interrupts the rest of the workflow.