xsf / xeps

Hosts the markup for all XMPP Protocol Extensions.
https://xmpp.org/extensions/
Other
125 stars 121 forks source link

XEP-0054: Updated error cases to be compatible with RFC 6121 #1351

Closed guusdk closed 1 month ago

guusdk commented 3 months ago

In section 3.3 of XEP-0054 it is defined that the same error condition MUST be used in both a case:

RFC 6121 section 8.5.1 defines:

If the user account identified by the 'to' attribute does not exist, how the stanza is processed depends on the stanza type. For an IQ stanza, the server MUST return a <service-unavailable/> stanza error to the sender.

Prior to this change, both <service-unavailable/> and <item-not-found/> were offered as suitable conditions to be used in the error scenario defined in section 3.3. For this XEP to be more compatible with RFC 6121, only <service-unavailable> can be used.

This commit drops the <item-not-found> condition from the scenario, and elevates usage of to a MUST. It adds a note on backwards compatibility.