Linkify Debian bug numbers in comments correctly

Bug #67145 reported by Michael Bienia
40
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Launchpad itself
Triaged
Low
Unassigned

Bug Description

When mentioning a Debian bug number in a bug comment it gets linkified to a LP bug with the same number (which doesn't exist (yet)).

I usually use "Debian bug #321456" in a comment when I want to point to a Debian bug which is related to this bug report. This gets transformed to a link which points nowhere useful.

If possible recognize that this is a Debian bug number and add a correct link or don't linkify it at all (if the bug number doesn't exist in malone)

Tags: lp-web tales
Revision history for this message
Matthew Paul Thomas (mpt) wrote :

Michael's parenthetical aside is bug 4595, but the main problem -- linking Debian bug reports correctly -- is not a duplicate.

Changed in malone:
status: Unconfirmed → Confirmed
Revision history for this message
James Henstridge (jamesh) wrote :

Perhaps a better system would be this:

1. Change the search regex from "bug ..." to "($LPNAME )?bug ..." where LPNAME is a regex matching a valid Launchpad name
2. Look up $LPNAME in our list of external bug trackers.
3. If it is found, generate the appropriate bug tracker link, and link the entire text.
4. If not, just like the "bug ..." bit to the corresponding Launchpad bug report.

The Idea being to handle this for more than just the Debian bug tracker.

Curtis Hovey (sinzui)
affects: malone → launchpad-web
Changed in launchpad-web:
importance: Undecided → Low
status: Confirmed → Triaged
tags: added: tales
Revision history for this message
era (era) wrote :

This is rampant in comments imported from bug watches. Is there a separate bug report for Mozilla bugs, or should that just be added here?

For example, LP bug #15224 comment 17 [1] should obviously be linked to https://bugzilla.mozilla.org/show_bug.cgi?id=96579 and not to https://bugs.launchpad.net/ubuntu/+source/audacity/+bug/96579

([1] That's https://bugs.launchpad.net/ubuntu/+source/audacity/+bug/96579 in case that isn't linkified correctly either :-)

Revision history for this message
William Grant (wgrant) wrote : Re: [Bug 67145] Re: Linkify Debian bug numbers in comments correctly

On 21/02/13 23:41, era wrote:
> This is rampant in comments imported from bug watches. Is there a
> separate bug report for Mozilla bugs, or should that just be added here?

That's bug #505760.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.