Ticket #92 (closed defect: fixed)

Opened 19 months ago

Last modified 19 months ago

Some error messages are wrong

Reported by: sxw Owned by: sxw
Priority: major Component: General
Version: 2.1 Keywords:
Cc: Tracforge_linkmap:
Blocking: Blocked By:

Description

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 user@domain Currently, we do ignore, <recipient-unavailable>, send to user@domain 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?

Attachments

jabberd-2.1.6-xmpperror.patch (2.4 KB) - added by sxw 19 months ago.
Change error returns to match those in XMPP-IM
jabberd-2.1.6-xmpperror2.patch (440 bytes) - added by sxw 19 months ago.
On more - in mod_iq_vcard.c

Change History

Changed 19 months ago by smoku

It is always worth producing bugfixes.

Changed 19 months ago by sxw

Change error returns to match those in XMPP-IM

Changed 19 months ago by sxw

On more - in mod_iq_vcard.c

Changed 19 months ago by sxw

Couple of patches attached. The Trac patch browser seems to miss the fix to sm/dispatch.c, but it's there in the uploaded file.

Changed 19 months ago by smoku

  • status changed from new to assigned

Applied the first patch. The second duplicates first chunk of first.

Changed 19 months ago by smoku

  • owner changed from smoku to sxw
  • status changed from assigned to new

Changed 19 months ago by smoku

(In [248]) XMPP compatibility fixes. References #92

Changed 19 months ago by smoku

  • status changed from new to closed
  • resolution set to fixed

Closing as there are no more related fixes.

Please reopen with new patches.

Note: See TracTickets for help on using tickets.