Bug 222291

Summary: ERROR:"The entered address does not have the required form." when attempting to connect to hosts with underscore ("_" / %5F) in host name
Product: [Applications] krdc Reporter: heydonkey
Component: generalAssignee: Urs Wolfer <uwolfer>
Status: RESOLVED INTENTIONAL    
Severity: normal CC: faure, heydonkey
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description heydonkey 2010-01-11 22:21:50 UTC
Version:           4.3.90 (using Devel)
OS:                Linux
Installed from:    Compiled sources

Kubuntu Karmic 9.10 64bit.  Latest KDE from kubuntu-ppa/beta PPA repository (KDE 4.3.90 - 4.4 RC1).

KRDC gives the error "The entered address does not have the required form." when using a host name such as:

pnt_ts2

Connects fine to hosts with no underscore in the host name.

Stock Karmic KDE version of krdc works fine.  Also had this same problem with OpenSUSE 64bit once I installed the latest KDE packages on that distro too.

Have also tried launching krdc from CLI passing the url as follows:

krdc rdp://pnt_ts2

This results in a different error "The entered address cannot be handled."
Comment 1 Urs Wolfer 2010-01-11 22:33:18 UTC
David, do you have any ideas here? It's most probably related to KUrl parsing.
Comment 2 heydonkey 2010-01-11 22:40:56 UTC
Sorry - also forgot to mention that I can use the rdesktop command from the CLI using the hostname with an underscore, and it works fine.

I'm assuming that KRDC uses rdesktop for the rdp part..
Comment 3 Christoph Feck 2010-01-13 03:32:52 UTC
If I understood Thiago correctly, such a character is not valid in host names according to the relevant RFCs.
Comment 4 heydonkey 2010-01-13 03:53:55 UTC
Unfortunately, it is entirely possible for machines to be named thus (in Windows at least) and, given KRDC is going to be used for connecting to Windows machines, the functionality really needs to be there (as it used to be).
Comment 5 David Faure 2010-01-14 10:48:34 UTC
<thiago> change the machine's hostname
<thiago> underscores are not allowed on DNS, nor in STD 3

(I know that no DNS is involved here, but still)

See also bug 220500.