Re: [Standards] XEP-0079 Advanced Message Processing

2010-06-04 Thread Peter Saint-Andre
On 5/1/10 10:38 AM, Artur Hefczyc wrote:
> Hi,
> 
> I am almost finishing implementation of this XEP.
> Either I am wrong or there is a mistake in following XEP's examples:
> 7, 8 and 9 which show the server response to the user/client.
> 
> Let me take the example 7 as an example ;-)
> 
> Example 7. Alert Response
> 
>   to='berna...@hamlet.lit/elsinore'
>id='chatty2'>
>   status='alert'
>  from='franci...@hamlet.lit'
>  to='berna...@hamlet.lit/elsinore'>
>   
> 
>   
> 
> The incorrect part in my opinion is 'to' and 'from' attributes
> in the message or/and in the amp element.
> The alert is sent back to the original message sender 
> ('berna...@hamlet.lit/elsinore')
> in the above example, therefore this JID should be placed in 'from' attribute 
> in
> amp element. Or I am wrong and misunderstood the XEP?

Artur, you are right, because XEP-0079 says:

###

The 'from' attribute specifies the original sender of the containing
 stanza. This attribute MUST be specified for any 
stanza sent from a supporting server, regardless of the recipient. It
SHOULD NOT be specified otherwise. The value of the 'from' attribute
MUST be the full JID (n...@domain/resource) of the sender for the
original  stanza.

The 'to' attribute specifies the original (intended) recipient of the
containing  stanza. This attribute MUST be specified for any
 stanza sent from a supporting server, regardless of the
recipient. It SHOULD NOT be specified otherwise. The value of the 'to'
attribute MUST be the full JID (n...@domain/resource) of the intended
recipient for the original  stanza.

###

I've corrected those examples.

/psa




smime.p7s
Description: S/MIME Cryptographic Signature


[Standards] XEP-0079 Advanced Message Processing

2010-05-01 Thread Artur Hefczyc
Hi,

I am almost finishing implementation of this XEP.
Either I am wrong or there is a mistake in following XEP's examples:
7, 8 and 9 which show the server response to the user/client.

Let me take the example 7 as an example ;-)

Example 7. Alert Response

  

  

  

The incorrect part in my opinion is 'to' and 'from' attributes
in the message or/and in the amp element.
The alert is sent back to the original message sender 
('berna...@hamlet.lit/elsinore')
in the above example, therefore this JID should be placed in 'from' attribute in
amp element. Or I am wrong and misunderstood the XEP?

Artur
-- 
Artur Hefczyc
http://www.tigase.org/
http://artur.hefczyc.net/