Opened 8 years ago

Last modified 8 years ago

#13305 new enhancement

Pidgin cant understand xmpp id with _

Reported by: dchahovsky Owned by: deryni
Milestone: Component: XMPP
Version: 2.7.9 Keywords: _
Cc:

Description (last modified by dchahovsky)

I can't connect to "acc @ my_srv.domain.com", pidgin says "invalid xmpp id". Its because of symbol "_". Other clients (eg Miranda IM) successfully connects.

Change History (7)

comment:1 Changed 8 years ago by dchahovsky

  • Description modified (diff)

comment:2 Changed 8 years ago by dchahovsky

  • Description modified (diff)

comment:3 Changed 8 years ago by darkrain42

  • Keywords xmpp removed
  • Status changed from new to pending

'_' is an invalid character in DNS hostnames; it's used for various non-hostname-ey things in DNS (SRV records, etc).

I'll find a specific reference in RFCs if you want, but see http://en.wikipedia.org/wiki/Hostname#Restrictions_on_valid_host_names

comment:4 Changed 8 years ago by dchahovsky

  • Status changed from pending to new
  • Type changed from defect to enhancement

Okey, I agree that you are somehow right. But our company has a server in the intranet with an underscore in its name, and the jabber server is there. If the problem was in address I could solve it with direct ip or "hosts" file. But my JID must contain "_", otherwise server doesn't let me in. Do you really think that allowing underscore is a problem?

PS: changed to enhancement.

comment:5 Changed 8 years ago by darkrain42

  • Status changed from new to pending

I think allowing it is rather non-trivial. Even if it's allowed at canonicalization level for Jabber IDs in libpurple (which relies, at least under some circumstances, on the output of a third-party library), internationalized domain names with _ in them would not work because the use of the "ToASCII" function (how programs translate from an IDN to something that can show up in DNS) does not allow 'invalid' ASCII characters in domain names (including '_').

So while we could make the change, I'm concerned that it would be...well...spotty. What server software is this, by the way? Openfire?

comment:6 Changed 8 years ago by darkrain42

I'm not set against doing this (yet). I need to run some tests (which will involve bootstrapping some DNS) and test various servers and IDN/non-IDN names.

comment:7 Changed 8 years ago by dchahovsky

  • Status changed from pending to new

I don't know the server software. If its possible to find out it via the protocol - let me know.

By the way, pidgin 2.5.8 accepts "_" in JID and successfully connects. (tested a few minutes ago)

Note: See TracTickets for help on using tickets.
All information, including names and email addresses, entered onto this website or sent to mailing lists affiliated with this website will be public. Do not post confidential information, especially passwords!