Modify

Opened 6 years ago

Last modified 6 years ago

#13424 new defect

Reports can't list mails due to limitation in Trac permission system

Reported by: anonymous Owned by: lucid
Priority: normal Component: MailArchivePlugin
Severity: normal Keywords:
Cc: Trac Release:

Description

We can create TracReports like this:

SELECT id, subject, fromheader, toheader, date
FROM mailarchive

But the rows link to tickets.

Trac documentation suggests using 'mailarchive' as _realm to fix this:

SELECT id, subject, fromheader, toheader, date,
       'mailarchive' as _realm
FROM mailarchive

But this does not work because there is a hardcoded check in Trac that's wrong for this plugin. It guesses that when realm is mailarchive, the appropriate permission is probably MAILARCHIVE_VIEW. But it is actually MAIL_ARCHIVE_VIEW.

Attachments (0)

Change History (1)

comment:1 Changed 6 years ago by anonymous

Problem also reported to Trac.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain lucid.

Add Comment


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

 
Note: See TracTickets for help on using tickets.