Opened 7 years ago

Closed 7 years ago

#4739 closed defect (worksforme)

MasterTicketsPlugin conflicts with other plugins

Reported by: fgutierrez@… Owned by: coderanger
Priority: normal Component: MasterTicketsPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11


In the file line 43 the plugin checks for "ticket" in the path, then it assumes that there is going to be a key "ticket" in the data dictionary. Other plugins like the CustomFieldAdmin use URL like /admin/ticket/customfields so then an exception is generated.

If the if condition is changed to:

    def post_process_request(self, req, template, data, content_type):
        if req.path_info.startswith('/ticket/') and 'ticket' in data:
            tkt = data['ticket']
            links = TicketLinks(self.env, tkt)

the other plugins can include "ticket" in their url.

Attachments (0)

Change History (1)

comment:1 Changed 7 years ago by coderanger

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

The condition is .startswith('/ticket/'). /admin/ticket doesn't start with /ticket/ so it won't trigger the filter.

Add Comment

Modify Ticket

as closed The owner will remain coderanger.
The resolution will be deleted. Next status will be 'reopened'.

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

Note: See TracTickets for help on using tickets.