Bug 1257579 - auto-linking issues
auto-linking issues
Status: NEW
Product: Bugzilla
Classification: Community
Component: Bugzilla General (Show other bugs)
4.4
Unspecified Unspecified
medium Severity low (vote)
: ---
: ---
Assigned To: PnT DevOps Devs
tools-bugs
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2015-08-27 07:49 EDT by Tomas Hoger
Modified: 2017-10-10 03:20 EDT (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Tomas Hoger 2015-08-27 07:49:53 EDT
Description of problem:

Bugzilla code to automatically create links for URLs used in bug comments does not correctly handle links to itself.  If URL is show_bug.cgi?id=123#c0, correct link is created.  However, if URL is show_bug.cgi?id=123#h0 instead, BZ treats #h0 as not being part of the URL.  This is specific to links to self, URLs to any other site ending with #h0 are correctly turned to links.

Somewhat related RFE.  Currently, BZ#123 is turned to bug link.  Would it be possible to extend this to cover versions that refer to specific comment or history item, such as BZ#123#c0 and BZ#123#h0.
Comment 1 Tomas Hoger 2015-08-27 07:53:49 EDT
(In reply to Tomas Hoger from comment #0)
> Bugzilla code to automatically create links for URLs used in bug comments
> does not correctly handle links to itself.

Examples:

https://bugzilla.redhat.com/show_bug.cgi?id=1257579#c0
https://bugzilla.redhat.com/show_bug.cgi?id=1257579#h0

but this is ok:

https://partner-bugzilla.redhat.com/show_bug.cgi?id=1257579#h0

> Somewhat related RFE.  Currently, BZ#123 is turned to bug link.  Would it be
> possible to extend this to cover versions that refer to specific comment or
> history item, such as BZ#123#c0 and BZ#123#h0.

BZ#1257579
BZ#1257579#c0
BZ#1257579#h0

or maybe even:

bug 1257579#c0

in addition to currently supported bug 1257579 comment 0.

Is there currently any way to refer to specific history change?  Something like bug 1257579 history 0, given that full URL is not turned to link correctly.
Comment 2 Jason McDonald 2015-08-27 22:38:39 EDT
All of these suggestions appear to be feasible.  These should ideally be fixed in the upstream code.

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