Bug ID 1226586
Summary avahi-browse -a fails with "Invalid service type"
Classification openSUSE
Product openSUSE Distribution
Version Leap 15.6
Hardware Other
OS Other
Status NEW
Severity Normal
Priority P5 - None
Component GNOME
Assignee gnome-bugs@suse.de
Reporter martin.wilck@suse.com
QA Contact qa-bugs@suse.de
Target Milestone ---
Found By ---
Blocker ---

The following error occurs on multiple openSUSE systems, both 15.6 and Factory:

Error:

> avahi-browse -v -a
Server version: avahi 0.8; Host name: ares.local
E Ifce Prot Name                                          Type                
Domain
+   eth0 IPv4 connector-0                                  
_spotify-connect._tcp local
+   eth0 IPv4 one-s-0                                      
_spotify-connect._tcp local
: Cache exhausted
+   eth0 IPv4 Raumfeld-One-S-5aa49215a71dce5d5e3942e76961a1d1 _googlecast._tcp 
   local
+   eth0 IPv4 Raumfeld-Connector-d40ebb7d92cef2980bd98614fc032254
_googlecast._tcp     local
+   eth0 IPv4 5aa49215-a71d-ce5d-5e39-42e76961a1d1          _googlezone._tcp   
 local
+   eth0 IPv4 d40ebb7d-92ce-f298-0bd9-8614fc032254          _googlezone._tcp   
 local
+   eth0 IPv4 192-168-1-4                                   Microsoft Windows
Network local
+   eth0 IPv4 fritz-box                                     Microsoft Windows
Network local
+   eth0 IPv4 PROXY                                         Microsoft Windows
Network local
+   eth0 IPv4 ANANAS                                        Microsoft Windows
Network local
+   eth0 IPv4 one-s                                         SFTP File Transfer 
 local
+   eth0 IPv4 connector                                     SFTP File Transfer 
 local
+   eth0 IPv4 2064991846AFDD81                              _matterd._udp      
 local
+   eth0 IPv4 dahua1                                        Web Site           
 local
+   eth0 IPv4 PROXY                                         Device Info        
 local
+   eth0 IPv4 ANANAS                                        Device Info        
 local
avahi_service_browser_new() failed: Invalid service type

> avahi-browse -v -a
Server version: avahi 0.8; Host name: ares.local
E Ifce Prot Name                                          Type                
Domain
avahi_service_browser_new() failed: Invalid service type


# Preliminary analysis via dbus monitor

The client makes an invalid ServiceBrowserNew() method call with empty service
type parameter:

‣ Type=method_call  Endian=l  Flags=0  Version=1 Cookie=31  Timestamp="Thu
2024-06-20 10:05:32.977645 UTC"
  Sender=:1.657  Destination=org.freedesktop.Avahi  Path=/ 
Interface=org.freedesktop.Avahi.Server  Member=ServiceBrowserNew
  UniqueName=:1.657
  MESSAGE "iissu" {
          INT32 -1;
          INT32 -1;
          STRING "";
          STRING "";
          UINT32 0;
  };

‣ Type=error  Endian=l  Flags=1  Version=1 Cookie=137  ReplyCookie=31 
Timestamp="Thu 2024-06-20 10:05:32.977975 UTC"
  Sender=:1.656  Destination=:1.657
  ErrorName=org.freedesktop.Avahi.InvalidServiceTypeError 
ErrorMessage="Invalid service type"
  UniqueName=:1.656
  MESSAGE "s" {
          STRING "Invalid service type";
  };


It appears that this service type has been previously passed from the daemon to
the client via a DBus signal, either one of the following:

Type=signal  Endian=l  Flags=1  Version=1 Cookie=133  Timestamp="Thu 2024-06-20
10:05:32.976296 UTC"
  Sender=:1.656  Destination=:1.657  Path=/Client1/ServiceTypeBrowser1 
Interface=org.freedesktop.Avahi.ServiceTypeBrowser  Member=ItemNew
  UniqueName=:1.656
  MESSAGE "iissu" {
          INT32 2;
          INT32 0;
          STRING "";
          STRING "";
          UINT32 4;
  };

‣ Type=signal  Endian=l  Flags=1  Version=1 Cookie=134  Timestamp="Thu
2024-06-20 10:05:32.976485 UTC"
  Sender=:1.656  Destination=:1.657  Path=/Client1/ServiceTypeBrowser1 
Interface=org.freedesktop.Avahi.ServiceTypeBrowser  Member=ItemNew
  UniqueName=:1.656
  MESSAGE "iissu" {
          INT32 2;
          INT32 0;
          STRING "";
          STRING "local";
          UINT32 4;
  };


You are receiving this mail because: