-
Notifications
You must be signed in to change notification settings - Fork 430
Bad iq format error #4489
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi, we use So, idea is simple - we route IQ to some client in cluster, it could be on another node. But once we receive iq type=result, what should we do with it? we use IQ ids which contain the node number, where to send the reply for the actual processing by the server. Your case - client sends an IQ result for IQ we never asked for (unless you have some module which sends IQ get/setto the client and puts from="my.domain.com" in it) We should fix parsing though, and just ignore such unexpected/unwanted IQs. |
I think we should reply with something like that: <iq type="error" id="UNEXPECTED_ID" from="server.example.com" to="client@example.com/resource">
<error type="cancel">
<service-unavailable xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/>
</error>
</iq> |
Added a PR. Now there should be an error sent back #4503 |
Alteration of the PR. We've checked RFC again. So, changes would be: log with another log level, INFO instead of ERROR. For you: on the client, double check where you send this IQ from. RFC says:
|
Getting:
parse_iq_id_failed
, getting bad iq, without_
symbol, what could be source of such iqs?<iq xmlns='jabber:client' id='c6f59123b9721df6' to='my.domain.com' type='result'/>
Source file where error happening: ejabberd_local.erl:447
The text was updated successfully, but these errors were encountered: