| Summary: | SMB msdfs only show "No shared folder found" instead of following the link | ||
|---|---|---|---|
| Product: | [Frameworks and Libraries] kio-extras | Reporter: | os |
| Component: | Samba | Assignee: | Plasma Bugs List <plasma-bugs-null> |
| Status: | RESOLVED UPSTREAM | ||
| Severity: | normal | CC: | bjoern, fabian, kio-bugs-null, nate, sitter |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Arch Linux | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: | example program showing the problem | ||
Created attachment 177788 [details] example program showing the problem I can reproduce the issue. I do think it's a bug in libsmbclient though. What happens is that we issue a stat/smbc_readdir call on the original share. When we then try to stat/smbc_readdir the link we fall flat on the nose with > session setup failed: NT_STATUS_LOGON_FAILURE > Couldn't resolve \linkname This does however only happens iff we first stat the original share. If we directly stat the link everything seems to work fine. I am attaching an example program that shows the issue. Probably best to report this issue upstream at samba. I have installed nautilus, gvfs and gvfs-smb and can confirm that is is also broken there with the latest versions... Thanks for verifying and helping to troubleshoot! I will open a bug with the samba people :) |
SUMMARY When I try to open network share that is a "SMB msdfs path", all KDE apps show only an empty folder with the message "No shared folder found". STEPS TO REPRODUCE 1. For example open dolphin 2. open a msdfs path: "smb://server.example/sharename/msdfs_link" 3. OBSERVED RESULT Instantly opens an empty folder, displays in the middle "No shared folder found" EXPECTED RESULT It should show me the contents of the msdfs link target directory. This is confirmed to be working on: Windows systems, smbclient,kernel mount, gnome systems and it has worked in past on KDE. Unfortunately I can't tell when it has stopped following those links on KDE SOFTWARE/OS VERSIONS Operating System: Arch Linux KDE Plasma Version: 6.2.5 KDE Frameworks Version: 6.10.0 Qt Version: 6.8.1 Kernel Version: 6.12.10-arch1-1 (64-bit) Graphics Platform: Wayland Processors: 24 × AMD Ryzen 9 3900X 12-Core Processor Memory: 62.7 GiB of RAM Graphics Processor: Mesa Intel® Arc ADDITIONAL INFORMATION How it is setup on the server. in the smb.conf [group] path = /srv/fsdb/dfsgroup msdfs root = yes then simply a symlink has to be crated within the path: ln -s msdfs:server.example\\sharename linkname