coyim / coyim

coyim - a safe and secure chat client

Home Page:https://coy.im

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Warning on Ejabberd

olabiniV2 opened this issue · comments

When creating and joining a room on Ejabberd I get this warning in the log:

WARN[5573] Got a presence without resource in 'from' - this is likely an error  account=SCRUBBED@SCRUBBED component=session from=SCRUBBED@SCRUBBED stanza="&{{jabber:client presence} SCRUBBED@SCRUBBED 15397563345463767997 SCRUBBED@SCRUBBED/10219375033042539814642      0xc011892d20 <nil> <nil> <c ver='S24eK8PT4ezkeRjDO3cFz8BXdEo=' node='http://www.process-one.net/en/ejabberd/' hash='sha-1' xmlns='http://jabber.org/protocol/caps'/> <nil> <nil> <nil>}"

We noticed that some xmpp services send a presence with a tag <c xmlns="http://jabber.org/protocol/caps..." (more about this in https://xmpp.org/extensions/xep-0115.html), the presence received is like to:

<presence xmlns="jabber:client" to="bla@foo.org/gajim.3FFZJQUW" from="room@conf.foo.org" id="5568744759521517223">
  <c xmlns="http://jabber.org/protocol/caps" ver="brPaybhE6akmdUsf5j2MeNgrwII=" node="http://www.process-one.net/en/ejabberd/" hash="sha-1"/>
</presence>

We will avoid to print warnings for these kind of presence stanzas because we are not handling them yet.

Reviewed, OK