Projects tigase _server tigase-http-api Issues #89
Drop result/error packages received by HTTP-API if no connection present to write response to (#89)
wojciech.kapcia@tigase.net opened 4 years ago

http-api component should not respond to result/error packages received with another error if there is no connection to write the response to. If it does, in case of sess-man component it generates "Impossible" situation:

INFO:     Impossible happened, please report to developer packet: from=http@chat.xmpp/b9933b85-40ca-40a3-9c51-b95d669c61c9, to=sess-man@chat.xmpp., DATA=<iq id="688666c2-0844-426d-81bf-3ec8282e98c0" to="sess-man@chat.xmpp" from="admin@chat.xmpp" type="error"><error type="cancel" code="501"><feature-not-implemented xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/></error></iq>, SIZE=253, XMLNS=null, PRIORITY=NORMAL, PERMISSION=LOCAL, TYPE=error, connection: XMPPResourceConnection=[user_jid=sess-man@chat.xmpp, packets=2, connectioId=null, domain=chat.xmpp, authState=NOT_AUTHORIZED, isAnon=false, isTmp=false, parentSession hash=1378833764, parentSession liveTime=390060]
Andrzej Wójcik (Tigase) commented 4 years ago

I've changed logic, so now the HTTP component will not send feature-not-implemented or any other error if incoming <iq/> stanza with type result or error is not handled.

issue 1 of 1
Type
Bug
Priority
Normal
Assignee
Version
tigase-server-8.1.0
Issue Votes (0)
Watchers (0)
Reference
tigase/_server/tigase-http-api#89
Please wait...
Page is in error, reload to recover