[Pidgin] #13073: patch to fix D-Bus introspecction

Pidgin trac at pidgin.im
Sun Dec 12 22:33:18 EST 2010


#13073: patch to fix D-Bus introspecction
-------------------------+--------------------------------------------------
Reporter:  tecknicaltom  |        Type:  patch    
  Status:  new           |   Component:  libpurple
 Version:  2.7.7         |    Keywords:           
-------------------------+--------------------------------------------------
 The D-Bus spec says that when calling a method, the interface field is
 optional. Currently, when the Introspect method is called on the
 PurpleObject, if the interface is not given, introspection never happens
 and an empty xml document is sent as a reply. This can be demonstrated
 with the program dbus-cli available from [https://code.google.com/p/dbus-
 tools/ here].

 This patch changes the code to use the provided
 dbus_message_is_method_call function to test if the message is attempting
 to call the Introspect method. This function properly handles an omitted
 interface parameter.

 The patch also adds the Introspectable interface to the returned
 introspection xml and format the xml a bit for the next unfortunate soul
 that needs to debug at the lowest levels of dbus.

-- 
Ticket URL: <http://developer.pidgin.im/ticket/13073>
Pidgin <http://pidgin.im>
Pidgin


More information about the Tracker mailing list