1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-15 16:52:07 +01:00
Smack/smack-extensions/src/main/java/org/jivesoftware/smackx
Florian Schmaus 0d73c21945 [pubsub] FormNode(Provider) should not fail if there is no DataForm
Error IQ respones may not contain a data form, e.g.

<iq type="error" id="6LXNC-48" from="pubsub.openfire.xmpp.test" to="anno@openfire.xmpp.test/5dsi4g084a">
  <pubsub xmlns="http://jabber.org/protocol/pubsub#owner">
    <configure node="fdp/submitted/spot_report"/>
  </pubsub>
  <error code="403" type="auth">
    <forbidden xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/>
  </error>
</iq>

Also FormNode's toXML() already handled the case where submitForm was
'null'. Only the constructor threw a IAE if submitForm was 'null'.

Fixes SMACK-910.

Closes: https://github.com/igniterealtime/Smack/pull/471
2021-08-23 17:39:59 +02:00
..
address [address] Fix NPE in MultipleRecipientManager 2021-06-03 19:10:07 +02:00
admin Re-work data form API 2020-05-13 20:14:41 +02:00
amp s/occured/occurred/ 2019-10-30 12:02:36 +01:00
attention Make use of XmlStringBuilder in AttentionElement 2020-01-06 18:41:30 +01:00
blocking [core] Deprecate AbstractConnectionListener 2020-05-13 22:14:43 +02:00
bob [extensions] Use StanzaView as parameter type in BoBDataExtension.from() 2021-01-25 14:29:21 +01:00
bookmarks Enable werror for javadoc and fix javadoc issues 2019-08-30 12:08:30 +02:00
bytestreams [ibb] Use UInt16 for 'seq' and fix its handling 2020-12-05 23:04:17 +01:00
caps [caps] Use the raw character data of form fields when caclulating the hash 2021-07-19 15:38:42 +02:00
chatstates Introduce XMPPConnection.add(Message|Presence)Interceptor 2019-10-25 21:41:55 +02:00
commands Do not call XmlPullParser.getName() when the event is unknown 2021-07-06 13:37:57 +02:00
delay Do not have Stanza.getExtension(String, String) return a generic type 2020-04-05 22:10:05 +02:00
disco Delete TypedCloneable 2020-06-14 17:38:51 +02:00
filetransfer [filetransfer] Pre-register 'stream-method' form field 2021-03-14 19:34:28 +01:00
formtypes [formtypes] Introduce LOOKASIDE_FIELD_REGISTRY 2021-03-14 17:58:13 +01:00
forward Make Forwarded a generic type 2020-09-23 17:48:04 +02:00
geoloc geoloc: make GeoLocation implement hashCode() and equals(Object) 2020-04-13 20:40:10 +02:00
iqlast s/occured/occurred/ 2019-10-30 12:02:36 +01:00
iqprivate s/occured/occurred/ 2019-10-30 12:02:36 +01:00
iqregister Add XMPP.(get|has)Feature(Class|QName) and deprecate (String, String) 2020-07-23 14:32:14 +02:00
iqversion Add org.jivesoftware.smack.Smack with getVersion() and ensureInitialized() 2020-11-09 08:46:57 +01:00
jingle Do not call XmlPullParser.getName() when the event is unknown 2021-07-06 13:37:57 +02:00
jiveproperties Do not have Stanza.getExtension(String, String) return a generic type 2020-04-05 22:10:05 +02:00
last_interaction Do not have Stanza.getExtension(String, String) return a generic type 2020-04-05 22:10:05 +02:00
mediaelement [ibb] Use UInt16 for 'seq' and fix its handling 2020-12-05 23:04:17 +01:00
message_correct Do not have Stanza.getExtension(String, String) return a generic type 2020-04-05 22:10:05 +02:00
mood Do not call XmlPullParser.getName() when the event is unknown 2021-07-06 13:37:57 +02:00
muc Add more QNAME fields to extension element classes 2021-04-18 17:23:34 +02:00
nick Add more QNAME fields to extension element classes 2021-04-18 17:23:34 +02:00
offline [offline] Add OfflineMessageInfo.QNAME field 2021-04-18 17:17:48 +02:00
pep [extensions] Deprecate old-style PepManager PEP listeners 2020-05-25 20:32:47 +02:00
ping Bump Error Prone version to 2.3.4 and fix new bug patterns 2020-05-24 21:10:01 +02:00
privacy [core] Deprecate AbstractConnectionListener 2020-05-13 22:14:43 +02:00
pubsub [pubsub] FormNode(Provider) should not fail if there is no DataForm 2021-08-23 17:39:59 +02:00
receipts Bump Error Prone version to 2.3.4 and fix new bug patterns 2020-05-24 21:10:01 +02:00
rsm Rename Stanza.getExtension(String, String) to getExtensionElement() 2020-04-12 12:09:04 +02:00
search Re-work data form API 2020-05-13 20:14:41 +02:00
sharedgroups Enable werror for javadoc and fix javadoc issues 2019-08-30 12:08:30 +02:00
shim Do not have Stanza.getExtension(String, String) return a generic type 2020-04-05 22:10:05 +02:00
si Do not call XmlPullParser.getName() when the event is unknown 2021-07-06 13:37:57 +02:00
softwareinfo [softwareinfo] Separate static and non-static fields by empty line 2020-05-22 15:36:39 +02:00
time Javadoc changes for Java 11 compatibility 2019-07-19 23:05:46 +02:00
usertune [checkstyle] Tighten JavadocMethod checkstyle rule 2020-05-23 22:43:29 +02:00
vcardtemp Introduce StanzaBuilder 2019-10-25 21:41:55 +02:00
xdata [xdata] Safe the raw character data of form field values 2021-07-19 15:38:42 +02:00
xdatalayout Rework XML Element hierarchy and XmlStringBuilder 2019-09-07 18:17:08 +02:00
xdatavalidation [ibb] Use UInt16 for 'seq' and fix its handling 2020-12-05 23:04:17 +01:00
xhtmlim Do not call XmlPullParser.getName() when the event is unknown 2021-07-06 13:37:57 +02:00
package-info.java Add missing package-info descriptions. 2018-02-21 16:47:11 +01:00