#92: Some error messages are wrong
-------------------+--------------------------------------------------------
Reporter:  sxw     |       Owner:  smoku  
    Type:  defect  |      Status:  new    
Priority:  major   |   Component:  General
 Version:  2.1     |    Blocking:         
-------------------+--------------------------------------------------------
 In trying to track down some other issues, I've ended up playing around in
 the SM code rather more than intended.

 There seem to be some RFC compliance issues with some of the error
 messages that are returned, which seem to not follow XMPP-IM section 11.

 In particular (section numbers are from the RFC):

 11.2 - If the associated user account doesn't exist the behaviour should
 be:
 PRESENCE: ignore
 IQ: must return <service-unavailable>
 MESSAGE: should return <service-unavailable>

 Currently, we do ignore, <item-not-found>, <item-not-found>, respectively,
 so both of the error responses have the wrong code.

 11.3 If the JID has a resource, but there's no resource that matches, we
 should do:
 PRESENCE: ignore
 IQ: must return <service-unavailable>
 MESSAGE: send to [EMAIL PROTECTED]
 Currently, we do ignore, <recipient-unavailable>, send to [EMAIL PROTECTED]
 The error response has the wrong code, but the rest of the behaviour is
 correct

 Is it worth producing a patch to fix these error codes?

-- 
Ticket URL: <http://jabberd2.xiaoka.com/ticket/92>
jabberd2 <http://jabberd2.xiaoka.com/>
jabberd2 project
_______________________________________________
jabberd2 mailing list
[email protected]
http://lists.xiaoka.com/listinfo.cgi/jabberd2-xiaoka.com

Reply via email to