[Bug 1813112] [NEW] avahi-discover failed to display selected service details with UnicodeDecodeError

ๆž—ๅšไป(Buo-ren, Lin) Buo.Ren.Lin at gmail.com
Thu Jan 24 06:25:23 UTC 2019


Public bug reported:

## Bug reproduce instruction
(As this is a Unicode decode issue it might not be reproducible in all network environments)

1. Launch avahi-discover
2. Select certain service

## Expected behavior
The service details properly rendered on the bottom pane

## Current behavior
The service details remain "No service currently selected" with the following error traceback:

```
Found service 'Buo-ren-TS453A' of type '_qdiscover._tcp' in domain 'local' on 2.0.
Service data for service 'Buo-ren-TS453A' of type '_qdiscover._tcp' in domain 'local' on 2.0:
        Host Buo-ren-TS453A.local (192.168.1.10), port 8080, TXT data: ['accessType=http,accessPort=8080,model=TS-X53II,displayModel=TS-453A,fwVer=4.3.4,fwBuildNum=20180830,serialNum=Q169I13903,myCloudNASName=LinBuoRenNAS,myCloudNASDomain=myqnapcloud.com,webAdmPort=0,webAdmSslPort=0,webPort=0,webSslPort=0']
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 604, in msg_reply_handler
    reply_handler(*message.get_args_list(**get_args_opts))
  File "/usr/bin/avahi-discover", line 113, in service_resolved
    self.update_label(interface, protocol, name, stype, domain, host, aprotocol, address, port, avahi.txt_array_to_string_array(txt))
  File "/usr/bin/avahi-discover", line 246, in update_label
    infos = infos % (stype, name, domain, self.siocgifname(interface), self.protoname(protocol), host, address, port, txts.strip())
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe6 in position 6: ordinal not in range(128)
```

** Affects: avahi (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to avahi in Ubuntu.
https://bugs.launchpad.net/bugs/1813112

Title:
  avahi-discover failed to display selected service details with
  UnicodeDecodeError

Status in avahi package in Ubuntu:
  New

Bug description:
  ## Bug reproduce instruction
  (As this is a Unicode decode issue it might not be reproducible in all network environments)

  1. Launch avahi-discover
  2. Select certain service

  ## Expected behavior
  The service details properly rendered on the bottom pane

  ## Current behavior
  The service details remain "No service currently selected" with the following error traceback:

  ```
  Found service 'Buo-ren-TS453A' of type '_qdiscover._tcp' in domain 'local' on 2.0.
  Service data for service 'Buo-ren-TS453A' of type '_qdiscover._tcp' in domain 'local' on 2.0:
          Host Buo-ren-TS453A.local (192.168.1.10), port 8080, TXT data: ['accessType=http,accessPort=8080,model=TS-X53II,displayModel=TS-453A,fwVer=4.3.4,fwBuildNum=20180830,serialNum=Q169I13903,myCloudNASName=LinBuoRenNAS,myCloudNASDomain=myqnapcloud.com,webAdmPort=0,webAdmSslPort=0,webPort=0,webSslPort=0']
  Traceback (most recent call last):
    File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 604, in msg_reply_handler
      reply_handler(*message.get_args_list(**get_args_opts))
    File "/usr/bin/avahi-discover", line 113, in service_resolved
      self.update_label(interface, protocol, name, stype, domain, host, aprotocol, address, port, avahi.txt_array_to_string_array(txt))
    File "/usr/bin/avahi-discover", line 246, in update_label
      infos = infos % (stype, name, domain, self.siocgifname(interface), self.protoname(protocol), host, address, port, txts.strip())
  UnicodeDecodeError: 'ascii' codec can't decode byte 0xe6 in position 6: ordinal not in range(128)
  ```

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/avahi/+bug/1813112/+subscriptions



More information about the foundations-bugs mailing list