Ad-hoc with multi-step forms: Gajim sends wrong form
Gajim can't use some Ad-hoc commands properly. The problem seems that it does not send the form correctly to the server.
SW: Gajim SVN rev. 7768 ejabberd 1.1.2 or SVN
How to repeat:
-
Login with Gajim on an administrative account on an ejabberd server.
-
Open the 'Execute Command' window, and choose the first command 'Send announcement to all users'.
-
Gajim will show the formulary provided by ejabberd.
-
Fill it with any text, subject: aaa, message body: bbb. Click on Execute.
-
Gajim then sends this XML: <iq to="atenea" type="set" id="131"> <command node="announce/all" action="execute" sessionid="2007-01-05T18:37:12.472221Z" xmlns="http://jabber.org/protocol/commands"> <x xmlns="jabber:x:data" type="form"> <title>Send announcement to all users</title> <field var="subject" type="text-single" label="Subject"> <value>aaa</value> </field> <field var="body" type="text-multi" label="Message body"> <value>bbb</value> </field> </x> </command> </iq>
-
ejabberd answers with: ... <error code='400' type='modify'> <bad-request xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/> </error> </iq>
The problem seems that Gajim sends a filled form with the attribute type="form". If it said type="submit" instead, the form would be accepted by ejabberd. Is it a bug on ejabberd or on Gajim?
Another not-related bug is that Gajim does not read title="Form title" attributes. They are described on XEP-50, and are provided by ejabberd, but Gajim does not show the title to the user at all.