Modify

Opened 6 years ago

Closed 6 years ago

#4134 closed defect (worksforme)

watchable_paths has an re oversight

Reported by: mark.k.bettinger@… Owned by: doki_pen
Priority: normal Component: AnnouncerPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

with watchable_paths set to 'ticket/*' it will match ticket followed by 0 or more slash and will match ticketstats(another plugin) and any other path prefixed with 'ticket'. The expression should read 'ticket/.*' in order to include the / as part of the expression

Attachments (0)

Change History (2)

comment:1 Changed 6 years ago by anonymous

Have you tested this? Are you sure, are you on the newest version? * is replaced with .* before the re is matched. It isn't meant to be a regex, but more like a glob. There is a defect in that it doesn't escape regex directives before evaluating, so you can use any regex directive except '*' and it will work without issue.

comment:2 Changed 6 years ago by anonymous

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

Add Comment

Modify Ticket

Action
as 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.