c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #20974
[Bug 750508] Re: mailgate filename unique error - DATA LOSS
the problem is another one
after modifying
addons/document/ document.py
#if len(res):
# return False
to allow duplicate entries
during "create" of the first crm_helpdesk entry 2 (!) identical attachments (instead of one) are created.
So it always fails if the partner sends an attachment.
IMHO this may be new in 6.0.2 but similar to
https://bugs.launchpad.net/bugs/731624 where same peration is executed twice
Question, why does OpenERP checks hard for duplicate entries
IMHO it would be sufficient to quietly scip attachments with the same checksum and store the others (as already suggested)
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/750508
Title:
mailgate filename unique error - DATA LOSS
Status in OpenERP Modules (addons):
New
Bug description:
under certain conditions mails are not imported corretly and raise error
for testing purpose I am running fetchmail with option keep so I didn't loose data myself, but this is not the regular setup as it is necessary to examine and compare the mail account with what is imported - hence CRM helpdesk is not suitable for production !!
see also https://bugs.launchpad.net/bugs/746265 which will make it into trunk hopefully soon.
2011-04-04 19:01:10,368 WARNING Failed to process incoming email. Source of the failed mail is available at debug level.
Traceback (most recent call last):
File "/home/terp/OpenERP/trunk/openobject-server/6.0/bin/addons/mail_gateway/scripts/openerp_mailgate/openerp_mailgate.py", line 57, in parse
res_id = self.rpc('email.server.tools', 'process_email', self.model, xmlrpclib.Binary(message), custom_values)
File "/home/terp/OpenERP/trunk/openobject-server/6.0/bin/addons/mail_gateway/scripts/openerp_mailgate/openerp_mailgate.py", line 37, in __call__
return self.rpc.execute(self.dbname, self.user_id, self.passwd, *request, **kwargs)
File "/usr/lib64/python2.6/xmlrpclib.py", line 1199, in __call__
return self.__send(self.__name, args)
File "/usr/lib64/python2.6/xmlrpclib.py", line 1489, in __request
verbose=self.__verbose
File "/usr/lib64/python2.6/xmlrpclib.py", line 1253, in request
return self._parse_response(h.getfile(), sock)
File "/usr/lib64/python2.6/xmlrpclib.py", line 1392, in _parse_response
return u.close()
File "/usr/lib64/python2.6/xmlrpclib.py", line 838, in close
raise Fault(**self._stack[0])
Fault: <Fault warning -- ValidateError
File name must be unique!: 'Traceback (most recent call last):\n File "/home/terp/OpenERP/trunk/openobject-server/6.0/bin/netsvc.py", line 489, in dispatch\n result = ExportService.getService(service_name).dispatch(method, auth, params)\n File "/home/terp/OpenERP/trunk/openobject-server/6.0/bin/service/web_services.py", line 599, in dispatch\n res = fn(db, uid, *params)\n File "/home/terp/OpenERP/trunk/openobject-addons/6.0/audittrail/audittrail.py", line 511, in execute\n res = my_fct(db, uid, model, method, *args)\n File "/home/terp/OpenERP/trunk/openobject-addons/6.0/audittrail/audittrail.py", line 495, in my_fct\n return fct_src(db, uid, model, method, *args)\n File "/home/terp/OpenERP/trunk/openobject-server/6.0/bin/osv/osv.py", line 128, in wrapper\n self.abortResponse(1, inst.name, inst.exc_type, inst.value)\n File "/home/terp/OpenERP/trunk/openobject-server/6.0/bin/netsvc.py", line 70, in abortResponse\n raise Exception("%s -- %s\\n\\n%s"%(origin, description, details))\nException: warning -- ValidateError\n\nFile name must be unique!\n'>
Traceback (most recent call last):
File "/usr/lib64/python2.6/logging/__init__.py", line 768, in emit
msg = self.format(record)
File "/usr/lib64/python2.6/logging/__init__.py", line 648, in format
return fmt.format(record)
File "/usr/lib64/python2.6/logging/__init__.py", line 436, in format
record.message = record.getMessage()
File "/usr/lib64/python2.6/logging/__init__.py", line 306, in getMessage
msg = msg % self.args
TypeError: not all arguments converted during string formatting
reading message chricar-crm@10.147.160.3:139 of 140 (1547 header octets) (73290 body octets) not flushed
References