Modify

Opened 15 years ago

Closed 14 years ago

Last modified 14 years ago

#6846 closed defect (fixed)

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

Reported by: Artem Russakovskii Owned by: Ryan J Ollos
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 Kaveh 14 years ago.
patch to exclude code blocks from backlinks

Download all attachments as: .zip

Change History (7)

comment:1 Changed 15 years ago by Artem Russakovskii

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

comment:2 Changed 14 years ago by Ryan J Ollos

Owner: changed from Mel Chua to Ryan J Ollos

Reassigning to new maintainer.

comment:3 Changed 14 years ago by Kaveh

I agree, we ran into this one as well.

Changed 14 years ago by Kaveh

Attachment: code_block_patch.patch added

patch to exclude code blocks from backlinks

comment:4 Changed 14 years ago by Kaveh

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 14 years ago by Ryan J Ollos

Resolution: fixed
Status: newclosed

(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 14 years ago by Ryan J Ollos

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.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Ryan J Ollos.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.