[6.1] Fetchmail + file storage + duplicate attachment = uniqueness constraint violation
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenERP Community Backports (Addons) |
New
|
Undecided
|
Unassigned | ||
6.1 |
Fix Committed
|
Undecided
|
Stefan Rijnhart (Opener) |
Bug Description
On a system with document storage enabled, fetchmail will try to create a mail with attachment_ids set to [(6, 0, [1234, 1234])] if an email contains the same document twice. This leads to the following error:
File "/home/
self.
File "/home/
context = context)
File "/home/
mail_
File "/home/
res = super(mail_
File "/home/
result += self._columns[
File "/home/
cr.
File "/home/
return f(self, *args, **kwargs)
File "/home/
res = self._obj.
IntegrityError: duplicate key value violates unique constraint "message_
Related branches
- OpenERP Community Backports: Pending requested
-
Diff: 17 lines (+6/-1)1 file modifiedmail/mail_thread.py (+6/-1)