Gajim not fetching archive messages from Ejabberd + mod_mam
Gajim fetch of messages from archive not working with current trunk version of ejabberd with latest mod_mam.
Here is the request generated by Gajim-nightly on Debian:
\<!-- Out 15 2015 20:05:40 -->
\<iq xmlns="jabber:client" type="set" id="119">
\<query xmlns="urn:xmpp:mam:0" queryid="118">
\<x xmlns="jabber:x:data">
\<field var="FORM_TYPE" type="hidden">
\<value>urn:xmpp:mam:0\</value>
\</field>
\<field var="start" type="text-single">
\<value>2013-02-24T03:51:42Z\</value>
\</field>
\</x>
\<set xmlns="http://jabber.org/protocol/rsm">
\<max>30\</max>
\</set>
\</query>
\</iq>
Answer from Ejabberd with mod_mam:
\<!-- In 15 2015 20:05:40 -->
\<iq from='se84@eot63.su' to='se84@eot63.su/Gajim' id='119' type='error'>
\<query xmlns='urn:xmpp:mam:0' queryid='118'>
\<x xmlns='jabber:x:data'>
\<field var='FORM_TYPE' type='hidden'>
\<value>urn:xmpp:mam:0\</value>
\</field>
\<field var='start' type='text-single'>
\<value>2013-02-24T03:51:42Z\</value>
\</field>
\</x>
\<set xmlns='http://jabber.org/protocol/rsm'>
\<max>30\</max>
\</set>
\</query>
\<error code='400' type='modify'>
\<bad-request xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
\</error>
\</iq>
stackoverflow.com/questions/31424799/ejabberd-mam-doesnt-work-with-strophe-js
If I replace string
<x xmlns="jabber:x:data">
with
<x xmlns="jabber:x:data" type="submit">
all works perfectly and server sends archive messages.
Steps to reproduce
Change status from offline to online while XML Console active
Software versions
OS version: Debian jessie Ejabberd version: trunk mod_mam version: trunk