XMPP mandates that IQ stanzas contain an id attribute ("The 'id' attribute is REQUIRED for IQ stanzas.").
Up to now 0ad didn't set one causing it to fail to work properly with recent ejabberd versions, which respond with "bad request" to IQ stanzas without id. This patch fixes that issue.
Details
Details
- Reviewers
elexis Imarok - Group Reviewers
Restricted Owners Package (Owns No Changed Paths) - Commits
- rP20321: Add id for IQ stanzas
Just check the commands send to ejabberd without and with the patch. Without the <iq/> element doesn't include an id, with it does.
Diff Detail
Diff Detail
- Repository
- rP 0 A.D. Public Repository
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Event Timeline
Comment Actions
As said in irc already, it should probably be checked before why we don't get back the correct id when sending iqs to the bot.
Comment Actions
That's simply because XpartaMuPP doesn't implement the necessary logic (yet) to return the original id in the responses. Doesn't matter for this patch though, as it's a different issue and works fine without.
Comment Actions
Thanks for the patch.
It's ready to get committed, but you should add yourself to the credits before. (see https://code.wildfiregames.com/source/0ad/browse/ps/trunk/binaries/data/mods/public/gui/credits/texts/programming.json)