Summary: | Make wocky_stanza_get_type_info() check namespaces | ||
---|---|---|---|
Product: | Wocky | Reporter: | Will Thompson <will> |
Component: | General | Assignee: | 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://cgit.collabora.com/git/user/wjt/wocky/log/?h=stanza-types | ||
Whiteboard: | r+ | ||
i915 platform: | i915 features: |
Description
Will Thompson
2012-11-12 14:28:27 UTC
This comment in the diff context is no longer entirely true:
# Wocky fills in xmlns='' for us if we don't specify a namespace... great.
# So this means <message/> gets sent as <message xmlns=''/> and the server
# kicks us off.
All looks good though - ship it, and fix that comment if you're feeling virtuous.
> In the course of fixing this, I found that telling the console to send
> this: <message> <body> hai </body> </message>
> would send this: <message xmlns='jabber:client'> <body xmlns=''>
... which we presumably never noticed, because it worked fine in practice on typical XMPP clients. Namespaces? We've heard of them (where "we" means "XMPP implementors in general")
(In reply to comment #1) > This comment in the diff context is no longer entirely true: > > # Wocky fills in xmlns='' for us if we don't specify a namespace... great. > # So this means <message/> gets sent as <message xmlns=''/> and the server > # kicks us off. > > All looks good though - ship it, and fix that comment if you're feeling > virtuous. > > > In the course of fixing this, I found that telling the console to send > > this: <message> <body> hai </body> </message> > > would send this: <message xmlns='jabber:client'> <body xmlns=''> > > ... which we presumably never noticed, because it worked fine in practice on > typical XMPP clients. Namespaces? We've heard of them (where "we" means > "XMPP implementors in general") Yeah. Gabble doesn't care, for instance. (Also, I find the console most useful for sending IQs, whose bodies always have an explicit namespace, so the issue of recursively fixing up the ns never came up!) Merged to Wocky and Gabble master: http://cgit.freedesktop.org/wocky/log/?id=31f33f4ba66bcdddda84b419cf4960073d071290 http://cgit.freedesktop.org/telepathy/telepathy-gabble/commit/?id=1d6c3044f13488e5457a31be631dec8e12068b6b |
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.