Bug 33389

Summary: Samba shares doesn't work with zeroconf hostname resolution in dolphin
Product: Mageia Reporter: pat dealt <pat.dealt>
Component: RPM PackagesAssignee: Mageia Bug Squad <bugsquad>
Status: NEW --- QA Contact:
Severity: major    
Priority: Normal    
Version: 9   
Target Milestone: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Source RPM: dolphin plasma kde smbclient CVE:
Status comment:

Description pat dealt 2024-07-10 11:41:53 CEST
Description of problem:

What doesn't work :
-----------------
When I tried to access a shared directory from Mageia-9 to  Windows (or Mageia-9)
I've got the following result :

In dolphin I set
- smb://hostname.local/Shared-directory :

Error message displayed in dolphin :
"impossible to connect to host <<smb://hostname.local>>
or "sharename doesn't exist"

Looking at logs : dolphin "kf.kio.core: Invalid URL: QUrl("")"

I have tried with krusader instead of dolphin : same negative result
I have tried with smbclient : same result with this error message
"do_connect: Connection to hostname.local failed (Error NT_STATUS_UNSUCCESSFUL)"

What does work :
--------------

When I replace hostname by IP address, I can connect to the same host.
In dolphin  smb://IP Address of the same host/Shared-directory
In console  smbclient //IP Address of the same host/Shared-directory

Seems to be related to zeroconf hostname resolution but :

ping hostname.local
ping -4 hostname.local
ping -6 hostname.local

All work, so zeroconf hostname resolution is working.


I feel (but not sure) :
---------------------
.. that it has worked in a recent past with one the first MGA9 official release (April 2024). In this case it could be a regression issue due to a further update.

It also looks like old series of bugs impacting MGA8 and samba share :
https://bugs.mageia.org/show_bug.cgi?id=30788
https://bugzilla.redhat.com/show_bug.cgi?id=2068976
https://bugs.mageia.org/show_bug.cgi?id=30984

... but in MGA8 it didn't work at all (ie.  even with IP Address too).

Version-Release number of selected component (if applicable):

- plasma-framework-5.114.0-1.mga9
- dolphin-23.04.3-1.2.mga9
- avahi-0.8-10.1.mga9 + libs 
- kio-zeroconf-23.04.3-1.mga9 
- samba-usershares-4.17.12-1.mga9

How reproducible:

Anytime

Steps to Reproduce:
1. in dolphin set : smb://hostname.local/share-directory
2. =>Error message (see above)