baiwyc119 / lxmppd

Automatically exported from code.google.com/p/lxmppd
0 stars 0 forks source link

Returns invalid error stanza with a undefined condition "already-bound" #484

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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

Original issue reported on code.google.com by fschm...@gmail.com on 24 Mar 2015 at 11:26

GoogleCodeExporter commented 9 years ago
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

Original comment by MWild1 on 24 Mar 2015 at 11:40

GoogleCodeExporter commented 9 years ago
Fixed in commit f93e1b2ec327 - will be released in 0.9.8.

Original comment by MWild1 on 24 Mar 2015 at 3:59