diff options
author | Will Thompson <will.thompson@collabora.co.uk> | 2012-11-12 14:10:57 +0000 |
---|---|---|
committer | Will Thompson <will.thompson@collabora.co.uk> | 2012-11-14 18:17:34 +0000 |
commit | 1d6c3044f13488e5457a31be631dec8e12068b6b (patch) | |
tree | 618b9ffb7a8506a42cbc79b5dbaecf1a20ecb274 /lib | |
parent | b09e286aa47dfafcc0809cee0e4fe97fd87f95c8 (diff) |
Update Wocky snapshot to validate stanza namespaces
This breaks the console plugin, which checks if an entered stanza is of
a known type, but <message xmlns=''> is not the same as <message
xmlns='jabber:client'> so Wocky now says the former has type UNKNOWN.
The plugin already had some code to fix up empty namespaces, but it's
after the type check. For a better fix, I added API to give
non-streaming WockyXmppReaders a default namespace, and used it here.
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=''>
hai
</body>
</message>
which is wrong: the empty namespace was not being fixed up recursively.
This is fixed as a side-effect of the default-namespace property, but
this patch also adds a test.
https://bugs.freedesktop.org/show_bug.cgi?id=57016
Diffstat (limited to 'lib')
m--------- | lib/ext/wocky | 0 |
1 files changed, 0 insertions, 0 deletions
diff --git a/lib/ext/wocky b/lib/ext/wocky -Subproject 0c9e226e165803d53a278b5fdbb3fb4c3f2330b +Subproject 31f33f4ba66bcdddda84b419cf4960073d07129 |