Bug 624597 - bugzilla: minor auto-linkification issue
Summary: bugzilla: minor auto-linkification issue
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Bugzilla
Classification: Community
Component: User Interface
Version: 3.6
Hardware: All
OS: Linux
medium
medium
Target Milestone: 4.2-3
Assignee: Simon Green
QA Contact:
URL:
Whiteboard:
: 156316 627369 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-08-17 07:32 UTC by Tomas Hoger
Modified: 2018-12-09 06:29 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-07-12 22:39:50 UTC
Embargoed:


Attachments (Terms of Use)

Description Tomas Hoger 2010-08-17 07:32:03 UTC
Description of problem:
BZ 3.6 seems to be more regex-greedy when turning some patterns to links.  While previously link name only contained pattern, now it can contain surrounding white space or bracket, possibly other characters.

Examples I've seen:
- foo CVE-2000-0000 bar
- foo [CVE-2000-0000] bar
- foo() CVE-2000-0000 bar
- foo: CVE-2000-0000 bar
- foo:
  CVE-2000-0000
  bar

Previously, the link was always as: <a href="...">CVE-2000-0000</a>.

Not sure if this is specific to CVE regex or may affect other references, so few experiments follow:
- foo bug #123 bar
- foo: bug #123 bar
- foo() bug #123 bar
- foo issue #123 bar
- foo: issue #123 bar
- foo() issue #123 bar
- foo RHBA-2000:0000 bar
- foo: RHBA-2000:0000 bar
- foo() RHBA-2000:0000 bar

Comment 1 Tomas Hoger 2010-08-17 07:33:47 UTC
(In reply to comment #0)
> Not sure if this is specific to CVE regex or may affect other references, so
> few experiments follow:

All of these look ok.

Comment 2 Tomas Hoger 2010-08-17 08:52:32 UTC
Another test pattern:

http://link.to/somewhere?foo=bar CVE-2000-0000

Comment 3 Tomas Hoger 2010-08-27 13:18:40 UTC
Has anyone got time to look at this?  Issue in comment #2 makes at least one bug I've just came across hardly readable.

Comment 4 David Lawrence 2010-08-27 13:44:37 UTC
(In reply to comment #3)
> Has anyone got time to look at this?  Issue in comment #2 makes at least one
> bug I've just came across hardly readable.

Sort of. I am pushing out an update today that disables the Red Hat code that does the linkification of these word patterns. Then we can do some more research to find out why it is breaking and then push the proper fix live in the near future. I would rather have the comments be readable for now that to have a convenience feature that is broken.

Dave

Comment 5 David Lawrence 2010-08-27 13:45:16 UTC
*** Bug 627369 has been marked as a duplicate of this bug. ***

Comment 7 Simon Green 2011-09-14 01:11:48 UTC
Can this bug be closed? Seems all the links in the above comments look fine to me?

  -- simon

Comment 8 Tomas Hoger 2011-09-14 06:37:36 UTC
My understanding is we dropped linkification of CVE ids as they were causing troubles, and never restored it.  I'm not sure if we ever did turn RH[BES]A ids to links, so I'm unsure if that falls under regression or RFE classification, and it's also not completely clear what should be linked.

Comment 10 Vincent Danen 2011-09-14 22:07:50 UTC
I don't think we can close this; the bug is about broken CVE links and from what I can see, they are all broken as of now.  Unless we never intend to bring CVE-hotlinks back?

Comment 11 Simon Green 2012-05-10 22:13:39 UTC
I can see the code where dkl commented out CVE linking in comments. Will have to have a look at the reason why this was done before re-enabling it.

Comment 12 Simon Green 2012-06-05 05:08:37 UTC
This is ready for testing at https://bug624597.bugzilla.devel.redhat.com/ This also covers CAN-nnnn-nnnn links as dkl's original code did.

  -- simon

Comment 14 Simon Green 2012-06-05 05:10:47 UTC
(In reply to comment #12)
> This is ready for testing at https://bug624597.bugzilla.devel.redhat.com/
> This also covers CAN-nnnn-nnnn links as dkl's original code did.

Should mention that for a link to be created it must be preceded by a space, a comma, a full stop or be the beginning of the comment AND it must be followed by a space, a comma, a full stop or be the end of the comment.

  -- simon

Comment 17 Simon Green 2012-06-15 00:55:47 UTC
*** Bug 156316 has been marked as a duplicate of this bug. ***

Comment 18 Simon Green 2012-07-09 07:25:42 UTC
This change is due to go live at 9pm UTC today (Monday July 9th)

  -- simon

Comment 19 Simon Green 2012-07-09 21:02:05 UTC
The release date has been changed to 9pm UTC this Thursday (July 12th). Sorry for any inconvenience this late change may cause.

  -- simon

Comment 20 Simon Green 2012-07-12 22:39:50 UTC
This change is now live.


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