Bugzilla Tips

April 23, 2010

Autolinkification

Filed under: Uncategorized — gervmarkham @ 1:42 pm

Bugzilla’s comment autolinkifier will linkify the following things:

  • bug 12345
  • bug #12345
  • comment 6
  • comment #6
  • bug 12345, comment 6 (and other variations with a #)
  • attachment 67890
  • URLs for the following schemes: ‘afs’, ‘cid’, ‘ftp’, ‘gopher’, ‘http’, ‘https’, ‘irc’, ‘mailto’, ‘mid’, ‘news’, ‘nntp’, ‘prospero’, ‘telnet’, ‘view-source’, ‘wais’
  • Duplicate markers

These will only linkify if the bug exists – “bug 10000000” will not autolinkify until you have that many bugs.

Note that it doesn’t linkify bare numbers, so if you are talking about other bugs, please put the word “bug” before each of them. (Note also that the word “bug” is customizable system-wide – everywhere else as well as autolinkification).

Bugzilla also provides the ability to hook into this mechanism using the bug_format_comment hook, so an admin can extend it to autolinkify any text you like. If you have ideas for text you’d like autolinkified on bugzilla.mozilla.org, file a bug about it.

4 Comments

  1. How does crash report autolinkification work?

    Comment by Dan — April 23, 2010 @ 1:47 pm

  2. Dan: good question. Maybe someone has already written a hook for it. Unless you’ve installed a jetpack or Greasemonkey script or something.

    Gerv

    Comment by gervmarkham — April 23, 2010 @ 1:54 pm

  3. Crash reporting works via bp- followed by the report id (incidentally, this is why Camino displays the crash reports list using the bp- prefix in about:crashes, so that users can just copy/paste what they see and end up with a working link in Bugzilla, no learning of “jargon” required).

    I think reed wrote the hook for bp-crashreportUUID, but it’s been so long I don’t recall (and don’t feel like searching for the bug just to answer that).

    Comment by Smokey Ardisson — April 23, 2010 @ 5:31 pm

  4. Autolinkification also used to work for Talkback bug reports, but that’s even older, and now a moot point since only “old” versions (such as Thunderbird 2.0.0.24 which IIUC is still “supported” but on the downside) are still using Talkback rather than Breakpad. I suppose this was another “customization” in bugzilla.mozilla.org (as opposed to “bugzilla” as distributed to whoever wants to track their own software bugs with it).

    Comment by Tony Mechelynck — April 24, 2010 @ 9:20 am


RSS feed for comments on this post.

Create a free website or blog at WordPress.com.