1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-06-14 23:54:49 +02:00
Smack/smack-extensions/src/main/java/org/jivesoftware/smackx
Florian Schmaus 60b07b1d67 Make DiscoverInfoProvider namespace aware
Some servers respond to disco#info requests with

<iq id='npGtO-21' type='result' to='phone@xxx/MAXS' from='xxx'>
<query xmlns='http://jabber.org/protocol/disco#info'>
<identity type='pep' name='Prosody' category='pubsub'/>
<identity type='im' name='Prosody' category='server'/>
<feature var='urn:xmpp:blocking'/>
<feature var='urn:xmpp:carbons:2'/>
<feature var='urn:xmpp:carbons:1'/>
<feature var='vcard-temp'/>
<feature var='http://jabber.org/protocol/commands'/>
<feature var='urn:xmpp:mam:0'/>
<feature var='jabber:iq:private'/>
<feature var='http://jabber.org/protocol/pubsub#publish'/>
<feature var='http://jabber.org/protocol/disco#info'/>
<feature var='http://jabber.org/protocol/disco#items'/>
<feature var='urn:xmpp:ping'/>
<feature var='msgoffline'/>
<feature var='jabber:iq:roster'/>
<feature var='urn:xmpp:archive:auto'/>
<feature var='urn:xmpp:archive:manage'/>
<feature var='urn:xmpp:archive:pref'/>
<feature var='http://jabber.org/protocol/rsm'/>
<feature xmlns='urn:xmpp:archive'><optional><default/></optional></feature>
</query></iq>

Note the

<feature
xmlns='urn:xmpp:archive'><optional><default/></optional></feature>

which will cause the current parser implementation to parse it as
DiscoInfo Feature resulting in an Exception because some attributes are
missing.

This commit prevents this.
2016-06-03 10:59:10 +02:00
..
address Add Message.toString() providing a short description 2016-05-25 22:58:34 +02:00
amp Add checkstyle rule for StringBuilder.append(char) 2015-07-27 19:02:11 +02:00
attention Add checkstyle rule for StringBuilder.append(char) 2015-07-27 19:02:11 +02:00
bookmarks Bump jxmpp to 0.5.0-alpha4 2015-05-27 19:29:51 +02:00
bytestreams Verify Bytestream constructor arguments 2016-02-10 12:37:45 +01:00
caps Fix typo in CapsExtensionProvider: s/elment/element/ 2016-01-18 22:08:23 +01:00
chatstates Fix ChatStateListener javadoc 2016-04-16 00:25:09 +02:00
commands Do not fully qualify type in javadoc 2016-06-03 10:59:10 +02:00
delay Add FinalClass checkstyle check 2015-04-06 10:45:12 +02:00
disco Make DiscoverInfoProvider namespace aware 2016-06-03 10:59:10 +02:00
filetransfer Make XMPPError imutable and add stanza reference 2015-12-09 10:48:52 +01:00
forward Deprecate Forwarded.getForwardedPacket() 2015-06-02 17:30:57 +02:00
geoloc Add FinalClass checkstyle check 2015-04-06 10:45:12 +02:00
iqlast Make XMPPError imutable and add stanza reference 2015-12-09 10:48:52 +01:00
iqprivate Add checkstyle rule for StringBuilder.append(char) 2015-07-27 19:02:11 +02:00
iqregister Disable AccountManager over insecure connections 2016-04-14 23:19:55 +02:00
iqversion Make XMPPError imutable and add stanza reference 2015-12-09 10:48:52 +01:00
jiveproperties Add JavadocPackage checkstyle 2015-04-04 17:16:47 +02:00
message_correct Improve the Message Correction 2016-04-14 22:47:12 +02:00
muc Extend MucConfigFormManager and add javadoc 2015-11-22 22:47:10 +01:00
nick Use empty string nick on empty element tag 2016-05-31 08:10:31 +02:00
offline Add errorprone check and fix found errors 2015-09-13 18:12:33 +02:00
pep Refactor PEP to use PubSub API. 2015-08-17 12:45:23 +02:00
ping Rename 'serviceName' to 'xmppServiceDomain' 2015-05-19 09:26:59 +02:00
privacy Smack 4.1.4 2015-09-14 09:05:24 +02:00
pubsub Fixed documentation in PayloadItem.java and ItemsExtension.java 2016-04-08 22:54:18 +02:00
receipts Smack 4.1.6 2016-01-23 13:27:16 +01:00
rsm Add JavadocPackage checkstyle 2015-04-04 17:16:47 +02:00
search Add checkstyle rule for StringBuilder.append(char) 2015-07-27 19:02:11 +02:00
sharedgroups Add JavadocPackage checkstyle 2015-04-04 17:16:47 +02:00
shim Add JavadocPackage checkstyle 2015-04-04 17:16:47 +02:00
si Improve StringUtils.escapeForXml() 2016-01-18 22:04:20 +01:00
time Smack 4.1.7 2016-04-14 22:30:34 +02:00
vcardtemp Improve StringUtils.escapeForXml() 2016-01-18 22:04:20 +01:00
xdata Allow for multiple 'null' fields in DataForm 2015-11-20 17:39:02 +01:00
xdatalayout Add JavadocPackage checkstyle 2015-04-04 17:16:47 +02:00
xdatavalidation Add JavadocPackage checkstyle 2015-04-04 17:16:47 +02:00
xhtmlim Add errorprone check and fix found errors 2015-09-13 18:12:33 +02:00
package-info.java Add JavadocPackage checkstyle 2015-04-04 17:16:47 +02:00