Page MenuHomeWildfire Games

Add id for IQ stanzas
ClosedPublic

Authored by Dunedan on Sep 10 2017, 5:38 PM.

Details

Reviewers
elexis
Imarok
Group Reviewers
Restricted Owners Package(Owns No Changed Paths)
Commits
rP20321: Add id for IQ stanzas
Summary

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.

Test Plan

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

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

Dunedan created this revision.Sep 10 2017, 5:38 PM
Stan added reviewers: Restricted Owners Package, elexis.Sep 12 2017, 2:17 PM
Imarok added a comment.Oct 9 2017, 5:33 PM

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.

In D899#37194, @Imarok wrote:

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.

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.

Imarok added a comment.Oct 9 2017, 6:34 PM
In D899#37199, @Dunedan wrote:
In D899#37194, @Imarok wrote:

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.

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.

Ok, then wanna make a ticket about that?

In D899#37200, @Imarok wrote:

Ok, then wanna make a ticket about that?

Here you go: https://trac.wildfiregames.com/ticket/4812

Imarok added a comment.Oct 9 2017, 8:37 PM
In D899#37216, @Dunedan wrote:
In D899#37200, @Imarok wrote:

Ok, then wanna make a ticket about that?

Here you go: https://trac.wildfiregames.com/ticket/4812

thx. (Will review the patch soon.)

Imarok accepted this revision.EditedOct 20 2017, 3:56 PM

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)

This revision is now accepted and ready to land.Oct 20 2017, 3:56 PM
Dunedan updated this revision to Diff 3908.Oct 21 2017, 8:49 AM

Added myself to the credits.

This revision was automatically updated to reflect the committed changes.

doesn't build on win

Unknown Object (User) added a subscriber: Unknown Object (User).Mar 1 2024, 8:14 AM