[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [xmpp] 3920: id attribute on error replies



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Matthew Wild wrote:
> Minor issue in 3920. I think it would be helpful to add in section 9.3
> that when generating error replies in response to stanzas, the
> original stanza's 'id' attribute SHOULD be included in the reply.
> 
> For example we already have this text in 9.1.3:
> 
>    The 'id' attribute is used by the entity that generates a stanza
>    ("the originating entity") to track any response or error stanza that
>    it might receive in relation to the generated stanza from another
>    entity (such as an intermediate server or the intended recipient).
> 
> But in truth there is no way (purely by the specs) to be sure error
> replies will contain the correct id. I'd hope that most
> implementations do the right thing (since this is common sense) but it
> makes sense to change it for the future.
> 
> Agreed?
> 
> Matthew

We also have:
>    For <message/> and <presence/> stanzas, it is RECOMMENDED for the
>    originating entity to include an 'id' attribute; for <iq/> stanzas,
>    it is REQUIRED.
> 
>    If the generated stanza includes an 'id' attribute then it is
>    REQUIRED for the response or error stanza to also include an 'id'
>    attribute, where the value of the 'id' attribute MUST match that of
>    the generated stanza.
Which was AFAIR added exactly for this purpose ;)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkrTrWoACgkQ0JXcdjR+9YRsMQCgsyRRTqA5H7otIyAkctznQxyp
N7YAn2LYFwNZfW8oMDvzRXHYLy2dmaM+
=N1z5
-----END PGP SIGNATURE-----

Note Well: Messages sent to this mailing list are the opinions of the senders and do not imply endorsement by the IETF.