Modify

Opened 8 years ago

Closed 8 years ago

#802 closed defect (fixed)

Email attachments to trac - no attachments added in trac ticket

Reported by: isg28@… Owned by: bas
Priority: highest Component: EmailtoTracScript
Severity: critical Keywords: attachments
Cc: Trac Release: 0.10

Description (last modified by coderanger)

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 8 years ago by coderanger

  • Description modified (diff)

Fixing formatting

comment:2 Changed 8 years ago by isg28@…

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

resolved - added permission

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.