Ticket #6846 (closed defect: fixed)

Opened 3 years ago

Last modified 2 years ago

Plugin should ignore references that look like ticket numbers inside code blocks ({{{ #123 }}})

Reported by: Archon810 Assigned to: rjollos
Priority: normal Component: TracBacksPlugin
Severity: major Keywords:
Cc: Trac Release: 0.11

Description

A bunch of our early tickets keep getting auto trackbacked because new tickets we file contain code blocks with stacktraces, such as

#0  0xffffe405 in __kernel_vsyscall ()
#1  0x00a4bd80 in raise () from /lib/libc.so.6
#2  0x00a4d7de in abort () from /lib/libc.so.6
#3  0x00a451fb in __assert_fail () from /lib/libc.so.6
... etc

The plugin should ignore references like these that come from code blocks.

Attachments

code_block_patch.patch (1.3 kB) - added by kavehv on 11/16/10 19:58:58.
patch to exclude code blocks from backlinks

Change History

03/23/10 00:50:05 changed by Archon810

  • summary changed from Plugin should ignore reference that look like ticket numbers inside code blocks ({{{ #123 }}}) to Plugin should ignore references that look like ticket numbers inside code blocks ({{{ #123 }}}).

09/05/10 11:42:49 changed by rjollos

  • owner changed from mchua to rjollos.

Reassigning to new maintainer.

11/16/10 19:00:11 changed by kavehv

I agree, we ran into this one as well.

11/16/10 19:58:58 changed by kavehv

  • attachment code_block_patch.patch added.

patch to exclude code blocks from backlinks

11/16/10 19:59:53 changed by kavehv

I attached a patch that *should* work to exclude any tickets in a code block. It works when I run it through a test here: http://www.pythonregex.com/

11/20/10 05:21:45 changed by rjollos

  • status changed from new to closed.
  • resolution set to fixed.

(In [9464]) Applied patch to ignore inside a code block references that looks like ticket numbers. Thanks kavehv for the patch. Fixes #6846.

11/20/10 05:22:31 changed by rjollos

Went ahead and applied the patch, but I don't use this plugin anymore, so haven't tested it out. Please let me know if you find any issues.


Add/Change #6846 (Plugin should ignore references that look like ticket numbers inside code blocks ({{{ #123 }}}))




Change Properties
Action