← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 721152] Re: [6.0] mail_gateway - error importing mails with attachments

 

Hello Dr. Ferdinand,

"File name must be unique"
This type of error only occurred when attachment name not unique.
That's why importing was work without attachment.
The following related bug was already posted for this issue.
https://bugs.launchpad.net/openobject-addons/+bug/730632

Thanks.

** Changed in: openobject-addons
       Status: New => Incomplete

-- 
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/721152

Title:
  [6.0] mail_gateway - error importing mails with attachments

Status in OpenERP Modules (addons):
  Incomplete

Bug description:
  importing mails without attachment works
  the error comes from
  ./addons/document/document.py:            raise osv.except_osv(_('ValidateError'), _('File name must be unique!'))

  regardless which attachments are sent always the same error

  a quick fix would be aprreciated

  
  2011-02-18 10:40:48,101 WARNING Failed to process incoming email. Source of the failed mail is available at debug level.
  Traceback (most recent call last):
    File "/home/gass/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/gass/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 "/home2/gass/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 "/home2/gass/OpenERP/trunk/openobject-server/6.0/bin/service/web_services.py", line 599, in dispatch\n    res = fn(db, uid, *params)\n  File "/home2/gass/OpenERP/trunk/openobject-server/6.0/bin/addons/audittrail/audittrail.py", line 511, in execute\n    res = my_fct(db, uid, model, method, *args)\n  File "/home2/gass/OpenERP/trunk/openobject-server/6.0/bin/addons/audittrail/audittrail.py", line 495, in my_fct\n    return fct_src(db, uid, model, method, *args)\n  File "/home2/gass/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 "/home2/gass/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@xxxxxxxxxxxxxxxxxxxx:24 of 24 (748 header octets) (36375 body octets) not flushed
  gass@cc-hp:~/OpenERP/trunk/openobject-server/6.0/bin/addons/mail_gateway/scripts/openerp_mailgate>



References