Re: [jdev] Escaping JID using XEP-0106

2007-07-04 Thread David Ammouial
On Dimecres 27 Juny 2007, Matthias Wimmer wrote: (Don't know how I created They one to have.) I think you meant They want to have, which sounds similar when you speak the sentence mentally before typing it ;) -- David signature.asc Description: This is a digitally signed message part.

Re: [jdev] Escaping JID using XEP-0106

2007-06-28 Thread Tomasz Sterna
Dnia 27-06-2007, śro o godzinie 15:34 +0400, Sergei Golovan napisał(a): I didn't see any XMPP client, which requires to enter node and server separately in send message dialogs (I did see clients which asks for chatroom names). Just because others had teken the easy path (for developer, not

[jdev] Escaping JID using XEP-0106

2007-06-27 Thread Sergei Golovan
Hi! Could someone clarify how to escape the following JID (and to split it into node, server and resource)? [EMAIL PROTECTED]/[EMAIL PROTECTED]/resource I could do it in two ways: 1) user jabber.org [EMAIL PROTECTED]/resource 2) user\40jabber.org\27user jabber.org resource

Re: [jdev] Escaping JID using XEP-0106

2007-06-27 Thread Tomasz Sterna
Dnia 27-06-2007, śro o godzinie 12:53 +0400, Sergei Golovan napisał(a): Could someone clarify how to escape the following JID (and to split it into node, server and resource)? [EMAIL PROTECTED]/[EMAIL PROTECTED]/resource This is not a JID. (in other words: this is invalid JID) There is no

Re: [jdev] Escaping JID using XEP-0106

2007-06-27 Thread Sergei Golovan
On 6/27/07, Tomasz Sterna [EMAIL PROTECTED] wrote: Dnia 27-06-2007, śro o godzinie 12:53 +0400, Sergei Golovan napisał(a): Could someone clarify how to escape the following JID (and to split it into node, server and resource)? [EMAIL PROTECTED]/[EMAIL PROTECTED]/resource This is not a JID.

Re: [jdev] Escaping JID using XEP-0106

2007-06-27 Thread Norman Rasmussen
On 6/27/07, Sergei Golovan [EMAIL PROTECTED] wrote: You're right. And the question is: How to escape it? Can escaping be done unambiguously? Yes, but only if you already know the split. The problem is that if I get alredy escaped JID [EMAIL PROTECTED]/resource then I can unescape it and

Re: [jdev] Escaping JID using XEP-0106

2007-06-27 Thread Tomasz Sterna
Dnia 27-06-2007, śro o godzinie 15:03 +0400, Sergei Golovan napisał(a): You're right. And the question is: How to escape it? Can escaping be done unambiguously? Yes. You have a node, domain and resource which you need to escape before concatenating them into JID. The problem is that if I get

Re: [jdev] Escaping JID using XEP-0106

2007-06-27 Thread Matthias Wimmer
Hi Tomasz! Tomasz Sterna schrieb: Dnia 27-06-2007, śro o godzinie 12:53 +0400, Sergei Golovan napisał(a): Could someone clarify how to escape the following JID (and to split it into node, server and resource)? [EMAIL PROTECTED]/[EMAIL PROTECTED]/resource This is not a JID. (in other

Re: [jdev] Escaping JID using XEP-0106

2007-06-27 Thread Matthias Wimmer
Matthias Wimmer schrieb: The resource is allowed to contain '@' as well as '/'. Everything behind the first '/' character in a JID is the resource. ... but this has nothing to do with XEP-0106 BTW. XEP-0106 is about mapping non-JID addresses in a JID. e.g. if you have a E-Mail address, that

Re: [jdev] Escaping JID using XEP-0106

2007-06-27 Thread Sergei Golovan
On 6/27/07, Norman Rasmussen [EMAIL PROTECTED] wrote: On 6/27/07, Sergei Golovan [EMAIL PROTECTED] wrote: You're right. And the question is: How to escape it? Can escaping be done unambiguously? Yes, but only if you already know the split. So, a full unsecaped JID (with resource) can't be

Re: [jdev] Escaping JID using XEP-0106

2007-06-27 Thread Sergei Golovan
On 6/27/07, Matthias Wimmer [EMAIL PROTECTED] wrote: Matthias Wimmer schrieb: The resource is allowed to contain '@' as well as '/'. Everything behind the first '/' character in a JID is the resource. ... but this has nothing to do with XEP-0106 BTW. XEP-0106 is about mapping non-JID

Re: [jdev] Escaping JID using XEP-0106

2007-06-27 Thread Matthias Wimmer
Hi Sergei! Ah okay ... it seems I start understanding what you are trying to do. You want to map a JID (or something like that) into another JID, e.g. for building the infamous Jabber-Jabber transport. Sergei Golovan schrieb: So, a full unsecaped JID (with resource) can't be split

Re: [jdev] Escaping JID using XEP-0106

2007-06-27 Thread Sergei Golovan
On 6/27/07, Tomasz Sterna [EMAIL PROTECTED] wrote: Dnia 27-06-2007, śro o godzinie 15:03 +0400, Sergei Golovan napisał(a): You're right. And the question is: How to escape it? Can escaping be done unambiguously? Yes. You have a node, domain and resource which you need to escape before

Re: [jdev] Escaping JID using XEP-0106

2007-06-27 Thread Matthias Wimmer
Hi Sergei! Sergei Golovan schrieb: I didn't see any XMPP client, which requires to enter node and server separately in send message dialogs (I did see clients which asks for chatroom names). In address fields you will only enter escaped JIDs. But you could for example use a Jabber service

Re: [jdev] Escaping JID using XEP-0106

2007-06-27 Thread Sergei Golovan
On 6/27/07, Matthias Wimmer [EMAIL PROTECTED] wrote: Hi Sergei! Ah okay ... it seems I start understanding what you are trying to do. You want to map a JID (or something like that) into another JID, e.g. for building the infamous Jabber-Jabber transport. Not exactly. I want to implement

Re: [jdev] Escaping JID using XEP-0106

2007-06-27 Thread Matthias Wimmer
HI Sergei! Sergei Golovan schrieb: Or may be hiding real (escaped) JIDs from the user is a bad idea at all? In fields where a general JID is expected, I'd say you should display the full (escaped) JID. - As only this one is a JID. The whole fuzz about escaping is just to make something a JID,

Re: [jdev] Escaping JID using XEP-0106

2007-06-27 Thread Sergei Golovan
On 6/27/07, Matthias Wimmer [EMAIL PROTECTED] wrote: HI Sergei! Sergei Golovan schrieb: Or may be hiding real (escaped) JIDs from the user is a bad idea at all? In fields where a general JID is expected, I'd say you should display the full (escaped) JID. - As only this one is a JID. The

Re: [jdev] Escaping JID using XEP-0106

2007-06-27 Thread Mridul Muralidharan
Sergei Golovan wrote: On 6/27/07, Norman Rasmussen [EMAIL PROTECTED] wrote: On 6/27/07, Sergei Golovan [EMAIL PROTECTED] wrote: You're right. And the question is: How to escape it? Can escaping be done unambiguously? Yes, but only if you already know the split. So, a full unsecaped JID

Re: [jdev] Escaping JID using XEP-0106

2007-06-27 Thread Mridul Muralidharan
Sergei Golovan wrote: On 6/27/07, Matthias Wimmer [EMAIL PROTECTED] wrote: Matthias Wimmer schrieb: The resource is allowed to contain '@' as well as '/'. Everything behind the first '/' character in a JID is the resource. ... but this has nothing to do with XEP-0106 BTW. XEP-0106 is

Re: [jdev] Escaping JID using XEP-0106

2007-06-27 Thread Sergei Golovan
On 6/27/07, Mridul Muralidharan [EMAIL PROTECTED] wrote: It is not about visual representation. xep 106 is about encoding pieces of the jid such that they are compliant with xmpp requirements in a standard way. Then I would like to ask who should escape JIDs and when? I don't think that users

Re: [jdev] Escaping JID using XEP-0106

2007-06-27 Thread Sergei Golovan
On 6/27/07, Mridul Muralidharan [EMAIL PROTECTED] wrote: Why would you want to unescape it ? The identifier of the contact is user\40jabber.org\2fuser in xmpp world. The node by itself conveys no meaning other than when associated with the full jid. Citing XEP-0106: Typically, unescaping is

Re: [jdev] Escaping JID using XEP-0106

2007-06-27 Thread Michal 'vorner' Vaner
Hello On Wed, Jun 27, 2007 at 01:11:03PM +0200, Norman Rasmussen wrote: On 6/27/07, Sergei Golovan [EMAIL PROTECTED] wrote: You're right. And the question is: How to escape it? Can escaping be done unambiguously? Yes, but only if you already know the split. Is there a way the

Re: [jdev] Escaping JID using XEP-0106

2007-06-27 Thread Sergei Golovan
On 6/27/07, Matthias Wimmer [EMAIL PROTECTED] wrote: The same way XEP-0106 is not about allowing nice new characters and displaying them animated in high color and blinking. It is just for the case a character has to be transported and cannot be used directly. Any use of escaping should be

Re: [jdev] Escaping JID using XEP-0106

2007-06-27 Thread Sergei Golovan
On 6/27/07, Michal 'vorner' Vaner [EMAIL PROTECTED] wrote: Hello On Wed, Jun 27, 2007 at 01:11:03PM +0200, Norman Rasmussen wrote: On 6/27/07, Sergei Golovan [EMAIL PROTECTED] wrote: You're right. And the question is: How to escape it? Can escaping be done unambiguously? Yes, but

Re: [jdev] Escaping JID using XEP-0106

2007-06-27 Thread Matthias Wimmer
Sergei Golovan schrieb: I would say that the introduction of the XEP clearly says that it IS about allowing nice new characters. I don't read it that way. I read it: They one to have O'Hara as their username in the account backend (e.g. the LDAP server) and they may for example log in to the

Re: [jdev] Escaping JID using XEP-0106

2007-06-27 Thread Matthias Wimmer
Matthias Wimmer schrieb: They one to have O'Hara as their username in the account backend (e.g. Please read this as: If one wants to have ... (Don't know how I created They one to have.) Matthias

Re: [jdev] Escaping JID using XEP-0106

2007-06-27 Thread Matthias Wimmer
Hi Sergei! Sergei Golovan schrieb: Then I would like to ask who should escape JIDs and when? I don't think that users will read XEP and escape desired characters. Well escaping will mostly be done by transports. Consider the case of the well known msn transport: MSN has addresses of the form

Re: [jdev] Escaping JID using XEP-0106

2007-06-27 Thread Sergei Golovan
On 6/27/07, Matthias Wimmer [EMAIL PROTECTED] wrote: Sergei Golovan schrieb: I would say that the introduction of the XEP clearly says that it IS about allowing nice new characters. I don't read it that way. I read it: And how should one read: The escaped JID is unescaped only for

Re: [jdev] Escaping JID using XEP-0106

2007-06-27 Thread Matthias Wimmer
Hi Sergei! Sergei Golovan schrieb: And how should one read: The escaped JID is unescaped only for presentation to a human user (typically by an XMPP client)? As I explained in one of my last e-mails: someone might want to implement a Jabber client that has an interface like Pidgin but that

Re: [jdev] Escaping JID using XEP-0106

2007-06-27 Thread Sergei Golovan
On 6/27/07, Matthias Wimmer [EMAIL PROTECTED] wrote: Hi Sergei! Sergei Golovan schrieb: And how should one read: The escaped JID is unescaped only for presentation to a human user (typically by an XMPP client)? As I explained in one of my last e-mails: someone might want to implement a

Re: [jdev] Escaping JID using XEP-0106

2007-06-27 Thread Mridul Muralidharan
Sergei Golovan wrote: On 6/27/07, Mridul Muralidharan [EMAIL PROTECTED] wrote: It is not about visual representation. xep 106 is about encoding pieces of the jid such that they are compliant with xmpp requirements in a standard way. Then I would like to ask who should escape JIDs and when? I

Re: [jdev] Escaping JID using XEP-0106

2007-06-27 Thread Peter Saint-Andre
Sergei Golovan wrote: Hi! Could someone clarify how to escape the following JID (and to split it into node, server and resource)? [EMAIL PROTECTED]/[EMAIL PROTECTED]/resource Why are you showing full JIDs to users? What is the use case for showing this? I could do it in two ways: 1)

Re: [jdev] Escaping JID using XEP-0106

2007-06-27 Thread Peter Saint-Andre
Sergei Golovan wrote: On 6/27/07, Matthias Wimmer [EMAIL PROTECTED] wrote: Hi Sergei! Ah okay ... it seems I start understanding what you are trying to do. You want to map a JID (or something like that) into another JID, e.g. for building the infamous Jabber-Jabber transport. Not exactly.

Re: [jdev] Escaping JID using XEP-0106

2007-06-27 Thread Peter Saint-Andre
Matthias Wimmer wrote: Matthias Wimmer schrieb: The resource is allowed to contain '@' as well as '/'. Everything behind the first '/' character in a JID is the resource. ... but this has nothing to do with XEP-0106 BTW. XEP-0106 is about mapping non-JID addresses in a JID. e.g. if you