After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 570037 - Does not properly link URL's with underscores
Does not properly link URL's with underscores
Status: RESOLVED INVALID
Product: gnome-terminal
Classification: Core
Component: general
2.25.x
Other All
: Normal minor
: ---
Assigned To: GNOME Terminal Maintainers
GNOME Terminal Maintainers
Depends on:
Blocks:
 
 
Reported: 2009-01-31 23:16 UTC by Chris Coulson
Modified: 2016-02-02 21:11 UTC
See Also:
GNOME target: ---
GNOME version: 2.25/2.26



Description Chris Coulson 2009-01-31 23:16:36 UTC
Please describe the problem:
This was reported at https://bugs.edge.launchpad.net/ubuntu/+source/gnome-terminal/+bug/323713:

"In my GNOME Terminál 2.24.1.1 I wanted to open the URL http://phoenix_art.wps4.info/node/41 Only the http://phoenix was highlighted and shown in the browser"

I can also recreate on 2.25.5

Steps to reproduce:
1. Click on a URL that contains an underscore in gnome-terminal


Actual results:
Only the first part of the URL (before the underscore) is linked

Expected results:
The whole URL should work

Does this happen every time?
Yes

Other information:
Comment 1 Christian Persch 2009-02-01 12:31:23 UTC
RFC 2396 says that '_' is not legal in hostnames in URIs:

      host          = hostname | IPv4address
      hostname      = *( domainlabel "." ) toplabel [ "." ]
      domainlabel   = alphanum | alphanum *( alphanum | "-" ) alphanum
      toplabel      = alpha | alpha *( alphanum | "-" ) alphanum
Comment 2 Simon van der Linden 2009-02-07 20:03:46 UTC
Maybe, but in the local part of an email addresses, the underscore is a legal character, and g-t doesn't handle it properly, as of today.
Comment 3 Christian Persch 2009-02-07 20:10:35 UTC
That can certainly be fixed, but it isn't what this bug report is about.
Comment 4 Christian Persch 2009-03-02 17:47:06 UTC
Comment 2 was split off into bug 570898; the original problem in comment 0 is INVALID.
Comment 5 Michael Diamond 2016-02-02 21:11:02 UTC
Hostnames may not allow underscores, but domain names certainly do (as evidenced by services that use them, and browsers that resolve them). According to  http://stackoverflow.com/a/2183140 the relevant RFC is RFC 1034, not RFC 2396.

Even if it were in violation of the appropriate RFCs, these URLs exist in the wild, and gnome-terminal could still support linking to them.