Opened 18 years ago

Last modified 18 years ago

#802 closed defect

Email attachments to trac - no attachments added in trac ticket — at Initial Version

Reported by: isg28@… Owned by: Bas van der Vlies
Priority: highest Component: EmailtoTracScript
Severity: critical Keywords: attachments
Cc: Trac Release: 0.10

Description

When emailing a request to the trac email with an attachment, the email goes to trac database but there is no attachments.

[root@localhost ~]# tail /var/log/messages Oct 12 16:38:02 localhost su(pam_unix)[4512]: session closed for user trac Oct 12 16:38:02 localhost crond(pam_unix)[4509]: session closed for user root Oct 12 16:38:02 localhost email2trac: Traceback (most recent call last): Oct 12 16:38:02 localhost email2trac: File "/usr/local/bin/email2trac", line 831, in ? tktparser.parse(sys.stdin) Oct 12 16:38:02 localhost email2trac: File "/usr/local/bin/email2trac", line 494, in parse self.new_ticket(m) Oct 12 16:38:02 localhost email2trac: File "/usr/local/bin/email2trac", line 452, in new_ticket n = self.attachments(msg, tkt) Oct 12 16:38:02 localhost email2trac: File "/usr/local/bin/email2trac", line 698, in attachments att.insert(url_filename, fd, filesize) Oct 12 16:38:02 localhost email2trac: File "/usr/lib/python2.3/site-packages/trac/attachment.py", line 180, in insert os.makedirs(self.path) Oct 12 16:38:02 localhost email2trac: File "/usr/lib/python2.3/os.py", line 154, in makedirs mkdir(name, mode) Oct 12 16:38:02 localhost email2trac: OSError: [Errno 13] Permission denied: '/trac/test/attachments/ticket/66'

Is it really a permission problem or something else? How can it be resolved?

Change History (0)

Note: See TracTickets for help on using tickets.