Bug 25116

Summary: CreateChannel MUST include TargetID in return value.
Product: Telepathy Reporter: David Laban <david.laban>
Component: tp-pythonAssignee: Telepathy bugs list <telepathy-bugs>
Status: RESOLVED FIXED QA Contact: Telepathy bugs list <telepathy-bugs>
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description David Laban 2009-11-16 04:32:21 UTC
I was hacking around with the echo bot+butterfly, and found that TargetID was missing from the properties returned when I requested a StreamedMedia channel. I think this is where it's happening, but I was supposed to be working on tp-glib bugs, so this was as far as I got.

diff --git a/src/server/conn.py b/src/server/conn.py
index 0ef2206..7e933d6 100644
--- a/src/server/conn.py
+++ b/src/server/conn.py
@@ -520,6 +520,9 @@ class ConnectionInterfaceRequests(
         for p in todel:
             del props[p]
 
+        # http://telepathy.freedesktop.org/spec/org.freedesktop.Telepathy.Connection.Interface.Requests.html
+        # says that we MUST include ChannelType, TargetHandleType, TargetHandle, TargetID, and Requested.
+        # We currently strip out TargetID. This is bad.
         _success(channel._object_path, props)
 
         # CreateChannel MUST return *before* NewChannels is emitted.
Comment 1 Olivier Le Thanh Duong 2009-12-11 03:45:05 UTC
Fixed in master

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.