Modify

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#6846 closed defect (fixed)

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

Reported by: Archon810 Owned by: 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 (1)

code_block_patch.patch (1.3 KB) - added by kavehv 4 years ago.
patch to exclude code blocks from backlinks

Download all attachments as: .zip

Change History (7)

comment:1 Changed 4 years ago 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 }}})

comment:2 Changed 4 years ago by rjollos

  • Owner changed from mchua to rjollos

Reassigning to new maintainer.

comment:3 Changed 4 years ago by kavehv

I agree, we ran into this one as well.

Changed 4 years ago by kavehv

patch to exclude code blocks from backlinks

comment:4 Changed 4 years ago 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/

comment:5 Changed 4 years ago by rjollos

  • Resolution set to fixed
  • Status changed from new to closed

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

comment:6 Changed 4 years ago 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 Comment

Modify Ticket

Action
as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from rjollos. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.