From a2685504fb741025487c24ec12f8b61714d9b7b0 Mon Sep 17 00:00:00 2001 From: Ian Paterson Date: Mon, 23 Oct 2006 10:24:19 +0000 Subject: [PATCH] 0.10 RC5 added localisation of labels and changed syntax of unacceptable field list git-svn-id: file:///home/ksmith/gitmigration/svn/xmpp/trunk@125 4b5297f7-1745-476d-ba37-a9c6900126ab --- xep-0155.xml | 31 ++++++++++++------------------- 1 file changed, 12 insertions(+), 19 deletions(-) diff --git a/xep-0155.xml b/xep-0155.xml index 2082ee10..afa75e97 100644 --- a/xep-0155.xml +++ b/xep-0155.xml @@ -27,9 +27,9 @@ &ianpaterson; 0.10 - 2006-10-20 + 2006-10-23 ip -

Specified handling of offline requests; minor clarifications.

+

Defined handling of offline requests; specified localization of the title element and all labels; changed syntax of list of unacceptable fields; removed reason field from some examples; minor clarifications.

0.9 @@ -115,6 +115,7 @@ ffd7076498744578d10edabfe7f4a866 + Open chat with Romeo? http://jabber.org/protocol/chatneg @@ -160,9 +161,6 @@ - - Can we talk? - @@ -173,6 +171,7 @@

The contact's server delivers the request to the contact's most available resource (which in the examples below happens to be "balcony"). If no resource is available (and no Advanced Message Processing rule included in the request specifies otherwise) then the server MAY store the request for later delivery. In this case, if the contact is interested only in an immediate chat session when it eventually receives the request, it SHOULD initiate a new chat session negotiation (including a newly-generated ThreadID) instead of responding to the user's request. Note: Sending any response to the user's original request would leak presence information since it would divulge the fact that the contact had been offline rather than just ignoring the user.

In any response to the user's request, the contact's client MUST mirror any 'id' attribute and &THREAD; value so that the user's client can correctly track the response.

If the contact's client does not support one of the default values or if the contact has disabled its support (as for Chat State Notifications and XHTML formatting in the example below), and the client can still accept the request, then it MUST set that field to a value that it can support.

+

If the contact's client is configured to show the form to the client instead of responding automatically it SHOULD replace the content of the <title/> element and of all label attributes of the <field/> and <option/> elements with it's own localised versions before showing the form to the client - even if the form already appears to be in the correct language. Note: If a client fails to localise the form then an malicious contact might, for examples, either switch the labels on the 'security' and 'otr' fields, or use the <title/> to mislead the user regarding the identity of the contact.

In the example below we assume that Juliet accepts the chat and specifies that she prefers to speak Italian with Romeo:

c2s it - - OK, but I'm too tired to practice my English! - @@ -243,7 +239,7 @@ ]]> -

If the contact's client does not support one or more of the required features, it SHOULD return a &feature; error and SHOULD specify the field(s) not implemented in a comma-separated list in the XMPP <text/> element:

+

If the contact's client does not support one or more of the required features, it SHOULD return a &feature; error, specifying the field(s) not implemented using the 'var' attribute of one or more <field/> child elements of a <feature/> child element of the <error/> scoped by the 'http://jabber.org/protocol/feature-neg' namespace:

- otr + + + ]]> -

If the contact's client supports none of the options for one or more fields, it SHOULD return a ¬acceptable; error and SHOULD specify the field(s) with unsupported options in a comma-separated list in the XMPP <text/> element:

+

If the contact's client supports none of the options for one or more fields, it SHOULD return a ¬acceptable; error, specifying the field(s) with unsupported options using the 'var' attribute of one or more <field/> child elements of a <feature/> child element of the <error/> scoped by the 'http://jabber.org/protocol/feature-neg' namespace:

- security + + + ]]> @@ -325,9 +325,6 @@ http://jabber.org/protocol/chatneg true - - Yes, the sys admin might tell our families! - @@ -350,9 +347,6 @@ PDA - - I am leaving the orchard. - @@ -371,7 +365,6 @@ http://jabber.org/protocol/chatneg PDA - OK, hurry to me.