RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 655132 - URLs with a colon in them are not interpreted correctly for Open Link
Summary: URLs with a colon in them are not interpreted correctly for Open Link
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: gnome-terminal
Version: 6.0
Hardware: x86_64
OS: Linux
low
low
Target Milestone: rc
: ---
Assignee: Tomáš Bžatek
QA Contact: Desktop QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-11-19 17:18 UTC by Jonathan Billings
Modified: 2015-03-03 22:55 UTC (History)
4 users (show)

Fixed In Version: gnome-terminal-2.31.3-7.el6
Doc Type: Bug Fix
Doc Text:
Previously, the regular expression used to find URLs in the text was missing a colon character. As a consequence, the URL containing a colon was not interpreted correctly. With this update, a colon character has been added to the regular expression so that the URL is now properly interpreted.
Clone Of:
Environment:
Last Closed: 2011-08-18 06:44:10 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
proposed patch (1.23 KB, patch)
2011-01-27 14:26 UTC, Tomáš Bžatek
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
GNOME Bugzilla 640727 0 None None None Never
Red Hat Product Errata RHBA-2011:1172 0 normal SHIPPED_LIVE gnome-terminal bug fix update 2011-08-18 06:44:01 UTC

Description Jonathan Billings 2010-11-19 17:18:07 UTC
Description of problem:
When a URL is viewed in a gnome-terminal, you can right-click on it and select Open Link.  I noticed today when reading the fedora announce mailing list that the following URL doesn't get interpreted correctly:

https://fedoraproject.org/wiki/Packaging:RPM_Source_Dir

When I go to right-click on the URL, it only underlines under the URL up to and including the final colon.  When I select Open Link, it only opens up "https://fedoraproject.org/wiki/Packaging:" in my web browser, and if I choose Copy Link Address, it only copies the same broken URL.  

On my RHEL5 system, this did not occur.  Something must have changed in the URL parser from RHEL5 to RHEL6.

Version-Release number of selected component (if applicable):
gnome-terminal-2.31.3-4.el6.x86_64

How reproducible:
For every URL with a colon in the path part of the URL.

Steps to Reproduce:
1. Start gnome-terminal
2. type any URL with a colon in the path part of the URL (for example:  http://foo.bar/path/with/a/colon:foo )
3. Hover over the URL, and right-click on the URL.
  
Actual results:
Only selects the URL up to and including the colon

Expected results:
Select the entire URL.

Additional info:
Tested on my Fedora 14 system as well, and this behaviour is the same as in RHEL6.

Comment 2 Tomáš Bžatek 2011-01-27 14:26:52 UTC
Created attachment 475608 [details]
proposed patch

Proposed patch. Since it's a regexp, I can't really think of what else would it break. Running full regression test suite recommended.

Comment 3 Tomáš Bžatek 2011-01-27 14:56:35 UTC
Filed upstream bug https://bugzilla.gnome.org/show_bug.cgi?id=640727, I'd rather wait for upstream reply before pushing to RHEL.

Comment 9 Tomáš Bžatek 2011-08-01 12:18:00 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Cause: the regexp used to find URLs in text was missing a colon character

Consequence: the URL containing a colon doesn't get interpreted correctly

Fix: a colon character has been added in the regexp

Result: the URL now gets interpreted correctly

Comment 10 Petr Kovar 2011-08-03 13:16:57 UTC
    Technical note updated. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    Diffed Contents:
@@ -1,7 +1 @@
-Cause: the regexp used to find URLs in text was missing a colon character
+Previously, the regular expression used to find URLs in the text was missing a colon character. As a consequence, the URL containing a colon was not interpreted correctly. With this update, a colon character has been added to the regular expression so that the URL is now properly interpreted.-
-Consequence: the URL containing a colon doesn't get interpreted correctly
-
-Fix: a colon character has been added in the regexp
-
-Result: the URL now gets interpreted correctly

Comment 11 errata-xmlrpc 2011-08-18 06:44:10 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-1172.html


Note You need to log in before you can comment on or make changes to this bug.