Modify

Opened 11 years ago

Closed 11 years ago

#802 closed defect (fixed)

Email attachments to trac - no attachments added in trac ticket

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

Description (last modified by Noah Kantrowitz)

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?

Attachments (0)

Change History (2)

comment:1 Changed 11 years ago by Noah Kantrowitz

Description: modified (diff)

Fixing formatting

comment:2 Changed 11 years ago by isg28@…

Resolution: fixed
Status: newclosed

resolved - added permission

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Bas van der Vlies.
The resolution will be deleted.

Add Comment


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

 
Note: See TracTickets for help on using tickets.