SUMMARY If you create a folder in a samba share, an authentication dialog asks for username and password for that share, but even when you enter the correct information, the dialog just opens again. STEPS TO REPRODUCE 1. Open a samba share in dolphin. 2. Create a folder. 3. Authentication prompt opens... OBSERVED RESULT Instead of just showing the create folder popup it asks for authentication and even when you enter the correct login information it just opens again. If you cancel the dialog two times it creates a folder normally. EXPECTED RESULT Don't show the authentication dialog and just create a folder. SOFTWARE/OS VERSIONS Operating System: Arch Linux KDE Plasma Version: 5.25.5 KDE Frameworks Version: 5.98.0 Qt Version: 5.15.6 Kernel Version: 5.19.10-zen1-1-zen (64-bit) Graphics Platform: X11 Processors: 16 × AMD Ryzen 7 1700X Eight-Core Processor Memory: 15,6 GiB of RAM Graphics Processor: NVIDIA GeForce GTX 1060 6GB/PCIe/SSE2 ADDITIONAL INFORMATION Log output when creating folder: kf.kio.workers.smb: QUrl("smb://samba@10.0.42.245/test/New Folder") kf.kio.workers.smb: checkURL QUrl("smb://samba@10.0.42.245/test/New Folder") kf.kio.workers.smb: checkURL return3 QUrl("smb://samba@10.0.42.245/test/New Folder") kf.kio.workers.smb: updateCache "/test/New Folder" kf.kio.workers.smb: size 0 kf.kio.workers.smb: updateCache "/test/New Folder" kf.kio.workers.smb: checkPassword for QUrl("smb://samba@10.0.42.245/test/New Folder") kf.kio.workers.smb: call openPasswordDialog for QUrl("smb://10.0.42.245/test") kf.kio.workers.smb: openPasswordDialog returned "samba" kf.kio.workers.smb: updateCache "/test/New Folder" kf.kio.workers.smb: QUrl("smb://samba@10.0.42.245/test/New Folder") kf.kio.workers.smb: checkURL QUrl("smb://samba@10.0.42.245/test/New Folder") kf.kio.workers.smb: checkURL return3 QUrl("smb://samba@10.0.42.245/test/New Folder") kf.kio.workers.smb: updateCache "/test/New Folder" kf.kio.workers.smb: size 0 kf.kio.workers.smb: updateCache "/test/New Folder" kf.kio.workers.smb: checkPassword for QUrl("smb://samba@10.0.42.245/test/New Folder")
I'm seeing the same behaviour on a current Arch install, so the same software and framework versions already mentioned plus what wasn't listed: Dolphin Version: 22.08.1 Samba/libsmbclient Version: 4.17.0 (same on client and server) The authentication dialog opens when first initiating a folder creation and needs to be dismissed twice, after which it appears again after every single letter entered in the new folder dialog. The folder is created just fine once I confirm the entered name. With the environment variables provided in the KDE community wiki for debugging kio-smb I get the following interesting messages: > [ 178.979](260009)/(default) unknown: 115 "Access denied to smb://@prettyserver.local:445/Documents/New Folder." > [ 182.214](260009)/(default) unknown: 115 "Access denied to smb://@prettyserver.local:445/Documents/f." > [ 183.179](260009)/(default) unknown: 115 "Access denied to smb://@prettyserver.local:445/Documents/fo." > [ 184.078](260009)/(default) unknown: 115 "Access denied to smb://@prettyserver.local:445/Documents/foo." > [ 185.070](260009)/(default) unknown: 115 "Access denied to smb://@prettyserver.local:445/Documents/foob." > [ 185.897](260009)/(default) unknown: 115 "Access denied to smb://@prettyserver.local:445/Documents/fooba." > [ 186.756](260009)/(default) unknown: 115 "Access denied to smb://@prettyserver.local:445/Documents/foobar."
Can reproduce with Dolphin 22.08.1 on Arch Linux.
Sounds like a bug in libsmbclient to be honest.
This bug maybe? https://bugzilla.samba.org/show_bug.cgi?id=15195 There is a patch that was already applied to Arch's package.
I can confirm that this is fixed with the proposed patch from the linked issue that's currently applied to Arch Linux' smbclient package (4.17.0-2), so this is an upstream bug in libsmbclient and kio-smb is doing nothing wrong here as far as I can tell.
Awesome.