#484 Returns invalid error stanza with a undefined condition "already-bound"
Reporter
fschmaus
Owner
MattJ
Created
Updated
Stars
★ (1)
Tags
Status-Fixed
Priority-Medium
Type-Defect
Interoperability
Milestone-0.9
fschmaus
on
Prosody returns:
<iq id='p8UJd-53' type='error' to='foo@bar.org/baz'>
<error type='cancel'>
<already-bound xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
<text xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'>Cannot bind multiple resources on a single connection</text>
</error>
</iq>
prosody-hg $ ag already-bound
core/sessionmanager.lua
117: if session.resource then return nil, "cancel", "already-bound", "Cannot bind multiple resources on a single connection"; end
'already-bound' is not defined in http://xmpp.org/rfcs/rfc6120.html#stanzas-error-conditions
MattJ
on
Looks like waqas made this one up back in 2008:
changeset: 304:7b28fa8bbfe5
user: Waqas Hussain <waqas20@gmail.com>
date: Sun Nov 16 03:16:53 2008 +0500
summary: Code cleanup for resource binding
I can't find it in any specs anywhere :)
I think we'll switch it to not-allowed, as defined here: http://xmpp.org/rfcs/rfc6120.html#bind-servergen-error
Prosody returns: <iq id='p8UJd-53' type='error' to='foo@bar.org/baz'> <error type='cancel'> <already-bound xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/> <text xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'>Cannot bind multiple resources on a single connection</text> </error> </iq> prosody-hg $ ag already-bound core/sessionmanager.lua 117: if session.resource then return nil, "cancel", "already-bound", "Cannot bind multiple resources on a single connection"; end 'already-bound' is not defined in http://xmpp.org/rfcs/rfc6120.html#stanzas-error-conditions
Looks like waqas made this one up back in 2008: changeset: 304:7b28fa8bbfe5 user: Waqas Hussain <waqas20@gmail.com> date: Sun Nov 16 03:16:53 2008 +0500 summary: Code cleanup for resource binding I can't find it in any specs anywhere :) I think we'll switch it to not-allowed, as defined here: http://xmpp.org/rfcs/rfc6120.html#bind-servergen-error
ChangesFixed in commit f93e1b2ec327 - will be released in 0.9.8.
Changes