Modify ↓
Opened 15 years ago
Closed 15 years ago
#62 closed defect (fixed)
email notification on ticket_update doesn't work when project has no components
Reported by: | gernot.hillier@… | Owned by: | bas |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | email2trac | Version: | 0.13 |
Keywords: | Cc: |
Description
When sending a ticket update via mail to a project that has no components, email2trac will manage to update the ticket in the database, but the email notification isn't sent.
It will fail with:
email2trac: Traceback (most recent call last): email2trac: File "/usr/local/bin/email2trac", line 1137, in <module> tktparser.parse(sys.stdin) email2trac: File "/usr/local/bin/email2trac", line 723, in parse if self.ticket_update(m): email2trac: File "/usr/local/bin/email2trac", line 602, in ticket_update self.notify(tkt, False, when) email2trac: File "/usr/local/bin/email2trac", line 857, in notify if tkt['component'] == 'Spam': email2trac: File "/var/lib/python-support/python2.5/trac/ticket/model.py", line 104, in __getitem__ return self.values[name] email2trac: KeyError: 'component'
Attachments (0)
Change History (6)
comment:1 Changed 15 years ago by anonymous
comment:2 Changed 15 years ago by bas
- Status changed from new to assigned
which version of email2trac do you use?
comment:3 Changed 15 years ago by gernot.hillier@…
I use the current stable release downloaded from ftp://ftp.sara.nl/pub/outgoing/email2trac.tar.gz today morning.
However, I looked at this code passage in /trunk and to me, it seems it isn't fixed yet...
comment:4 Changed 15 years ago by Hillier, Gernot
I use the current stable release downloaded from ftp://ftp.sara.nl/pub/outgoing/email2trac.tar.gz today morning. However, I looked at this code passage in /trunk and to me, it seems it isn't fixed yet...
comment:5 Changed 15 years ago by bas
You are right. It is now fixed in the trunk version. Thanks for reporing the bug.
comment:6 Changed 15 years ago by bas
- Resolution set to fixed
- Status changed from assigned to closed
Note: See
TracTickets for help on using
tickets.
If one creates any component in this project, everything works as exepcted.