Crashes when supplied with unknown type id

Bug #1472026 reported by Robert Ancell
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
content-hub (Ubuntu)
Fix Released
Medium
Ken VanDine

Bug Description

If you access the DBus interface methods KnownDestinationsForType, KnownSharesForType or KnownSourcesForType with an invalid type_id (e.g. '') the content hub service crashes. This is because it used the id as a GSettings key and it is considered a programmer error to look up a key that does not exist [1].

[1] https://developer.gnome.org/gio/stable/GSettings.html#g-settings-get-value

Related branches

description: updated
affects: content-hub → content-hub (Ubuntu)
Changed in content-hub (Ubuntu):
assignee: nobody → Ken VanDine (ken-vandine)
importance: Undecided → Medium
status: New → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package content-hub - 0.0+15.10.20150909-0ubuntu1

---------------
content-hub (0.0+15.10.20150909-0ubuntu1) wily; urgency=medium

  [ Ken VanDine ]
  * Fixed crash when the service is passed an invalid type via dbus (LP:
    #1472026)

  [ Michael Sheldon ]
  * Add an "Undefined" content type to QML bindings so we can avoid
    making unnecessary peer look ups when the content type hasn't yet
    been set now that peers can register for Unknown.

  [ Robert Ancell ]
  * Drop unused include that makes build fail unless Qt5Gui pkg-config
    file is used.

 -- Ken VanDine <email address hidden> Wed, 09 Sep 2015 16:58:39 +0000

Changed in content-hub (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.