Bug 459634 - samba authentication prompt when creating a folder which does not work
Summary: samba authentication prompt when creating a folder which does not work
Status: RESOLVED UPSTREAM
Alias: None
Product: kio-extras
Classification: Frameworks and Libraries
Component: Samba (show other bugs)
Version: 22.08.1
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL: https://bugzilla.samba.org/show_bug.c...
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-25 09:01 UTC by einglasvollkakao
Modified: 2022-10-14 17:44 UTC (History)
4 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 einglasvollkakao 2022-09-25 09:01:00 UTC
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")
Comment 1 prettyvanilla 2022-09-30 01:24:12 UTC
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."
Comment 2 Patrick Silva 2022-10-10 17:04:55 UTC
Can reproduce with Dolphin 22.08.1 on Arch Linux.
Comment 3 Harald Sitter 2022-10-12 18:23:59 UTC
Sounds like a bug in libsmbclient to be honest.
Comment 4 Patrick Silva 2022-10-12 19:34:16 UTC
This bug maybe?

https://bugzilla.samba.org/show_bug.cgi?id=15195

There is a patch that was already applied to Arch's package.
Comment 5 prettyvanilla 2022-10-12 21:36:54 UTC
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.
Comment 6 Nate Graham 2022-10-14 17:44:29 UTC
Awesome.