Summary: | Gabble disconnects on: "Error receiving stanza: Namespace prefix xmlns on server is not defined " | ||
---|---|---|---|
Product: | Telepathy | Reporter: | Danielle Madeley <danielle> |
Component: | gabble | Assignee: | Telepathy bugs list <telepathy-bugs> |
Status: | RESOLVED FIXED | QA Contact: | Telepathy bugs list <telepathy-bugs> |
Severity: | normal | ||
Priority: | medium | CC: | cat, tom+freedesktop |
Version: | 0.10 | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Danielle Madeley
2011-02-02 19:34:16 UTC
Hitting this with 0.10.0 with a similar stanza. Looks like the problem is a malformed tag in the iTeleport stanza: $ cat /tmp/stanza.xml <presence from="trivex@gmail.com/iTeleport Connect.MAC.71AE9956" to="cronos586@gmail.com/10719d02"> <nick xmlns="http://jabber.org/protocol/nick">tw-growth-pair</nick> <type xmlns="">MAC</type> <id xmlns="">vnc</id> <xmlns:server xmlns="http://www.w3.org/2000/xmlns/"/> <server xmlns=""/> <show>offline</show> <invisible value="true"/> <priority>-127</priority> <name xmlns="">iTeleport Connect</name> <version xmlns="">5.0.10</version> <ssh-enabled xmlns="">false</ssh-enabled> <automanage-vnc xmlns="">true</automanage-vnc> <encryption-enabled xmlns="">true</encryption-enabled> <router-mac-address xmlns=""/> <status/> <x xmlns="vcard-temp:x:update"> <photo>fae6150c7aefa1b5ff46baff04b39d3ee52dd118</photo> </x> </presence> $ python -c 'import libxml2; libxml2.parseFile("/tmp/stanza.xml")' /tmp/stanza.xml:5: namespace error : reuse of the xmlns namespace name is forbidden <xmlns:server xmlns="http://www.w3.org/2000/xmlns/"/> ^ /tmp/stanza.xml:5: namespace error : Namespace prefix xmlns on server is not defined <xmlns:server xmlns="http://www.w3.org/2000/xmlns/"/> The W3C recommendation on namespaces (http://www.w3.org/TR/REC-xml-names/#ns-decl) says that you can't redeclare the 'http://www.w3.org/2000/xmlns/' namespace, which is what that 'xmlns:server' tag is trying to do. It's not clear to me whether this is a bug in iTeleport, the Google XMPP server implementation, Gabble, or all of the above: * iTeleport definitely shouldn't be sending out malformed XML. * Google XMPP should (?) not accept malformed XML from its clients. * Gabble should gracefully handle this type of error, and ignoring the presence IQ, rather than crashing entirely. Is this fixed in newer versions of gabble? Looks like this was fixed in wocky commit f2cb0f6f: http://cgit.freedesktop.org/wocky/commit/?id=f2cb0f6f The first telepathy-gabble commit to pull this in from wocky was 50a69455: http://cgit.freedesktop.org/telepathy/telepathy-gabble/commit/?id=50a69455 For the 0.10 branch this means it's fixed in >= 0.10.2. Fixed in 0.10.2 and all subsequent versions, thanks for your research. Please note that the current stable branch is 0.12.x, and 0.10.x is unlikely to receive further bug fixes. |
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.