Bluez reports quoted hostname

Bug #1482688 reported by Simon Fels
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
bluez (Ubuntu)
Fix Released
Low
Simon Fels

Bug Description

At least on touch devices BlueZ reports a quoted hostname like "Aquaris E4.5 Ubuntu Edition" which is then send over to other devices including the quotes.

bluetoothd[6402]: plugins/adaptername.c:set_pretty_name() Setting name '"Aquaris E4.5 Ubuntu Edition"' for device 'hci0'
bluetoothd[6402]: plugins/mgmtops.c:mgmt_set_name() index 0, name "Aquaris E4.5 Ubuntu Edition"

BlueZ reads the hostname from /etc/machine-info on startup which has the following set

PRETTY_HOSTNAME="Aquaris E4.5 Ubuntu Edition"

Code in BlueZ needs to be changed to ignore the quotes from the value.

Tags: bluetooth
Simon Fels (morphis)
Changed in bluez (Ubuntu):
assignee: nobody → Simon Fels (morphis)
status: New → In Progress
Revision history for this message
Simon Fels (morphis) wrote :
Changed in bluez (Ubuntu):
importance: Undecided → Low
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package bluez - 4.101-0ubuntu29

---------------
bluez (4.101-0ubuntu29) wily; urgency=medium

  * debian/patches/unquote-hostname.patch:
    - As hostname is quoted in /etc/machine-info we have to unquote it before
      starting to use it or all remote device will see the quotes in our name.
      (LP: #1482688)

 -- Simon Fels <email address hidden> Fri, 07 Aug 2015 18:00:55 +0200

Changed in bluez (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.