1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-12-22 02:27:58 +01:00
Smack/smack-extensions/src
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
..
integration-test/java/org/jivesoftware/smackx s/occured/occurred/ 2019-10-30 12:02:36 +01:00
main [pubsub] FormNode(Provider) should not fail if there is no DataForm 2021-08-23 17:39:59 +02:00
test [xdata] Ensure that hidden FROM_TYPE field is first 2021-03-02 21:40:52 +01:00
testFixtures/java/org/jivesoftware/util test: remove InitExtensions 2020-04-12 09:34:08 +02:00