Bug 20763

Summary: Self and peer creating jingle contents sharing a name might confuse gabble.
Product: Telepathy Reporter: Will Thompson <will>
Component: gabbleAssignee: Telepathy bugs list <telepathy-bugs>
Status: RESOLVED FIXED QA Contact: Telepathy bugs list <telepathy-bugs>
Severity: normal    
Priority: medium Keywords: patch
Version: unspecified   
Hardware: Other   
OS: All   
URL: http://git.collabora.co.uk/?p=user/wjt/telepathy-gabble-wjt.git;a=shortlog;h=refs/heads/namespace-contents-by-creator
Whiteboard:
i915 platform: i915 features:
Bug Depends on: 22209    
Bug Blocks: 22237    

Description Will Thompson 2009-03-20 03:11:11 UTC
I suspect Gabble will get confused if it creates a content called 'stream3' and the peer does the same at the same time. It uses a single hash from content name to contents.

create_content() contains:
  /* This will override existing content if it exists. */
  g_hash_table_replace (priv->contents, g_strdup (name), c);

The overriding is not signalled to the peer. This seems wrong to me.
Comment 1 Will Thompson 2009-06-11 10:34:20 UTC
My branch 'namespace-contents-by-creator' should fix this, but I'd like to do some real-world testing before it's merged.
Comment 2 Sjoerd Simons 2009-06-16 05:36:18 UTC
+2
Comment 3 Will Thompson 2009-06-17 04:35:51 UTC
Merged, will be in telepathy-gabble 0.7.29.

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.