← Back to team overview

openerp-india team mailing list archive

[Bug 1031921] Re: filestore - error if file / directory is missing

 

** Changed in: openobject-addons
   Importance: Undecided => Wishlist

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

** Changed in: openobject-addons
     Assignee: (unassigned) => OpenERP R&D Addons Team 1 (openerp-dev-addons1)

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1031921

Title:
  filestore - error if file / directory is missing

Status in OpenERP Addons (modules):
  Confirmed

Bug description:
  If for some reason the filestore directory or the file itself is
  missing - it should raise an popup error not a traceback like this one

  Client Traceback (most recent call last):
    File "/home/gass/OpenERP/6.1/server/openerp/addons/web/common/http.py", line 260, in dispatch
      r = method(controller, self, **self.params)
    File "/home/gass/OpenERP/6.1/server/openerp/addons/web/controllers/main.py", line 1444, in saveas_ajax
      res = Model.read([int(id)], fields, context)[0]
    File "/home/gass/OpenERP/6.1/server/openerp/addons/web/common/openerplib/main.py", line 250, in proxy
      args, kw)
    File "/home/gass/OpenERP/6.1/server/openerp/addons/web/common/openerplib/main.py", line 117, in proxy
      result = self.connector.send(self.service_name, method, *args)
    File "/home/gass/OpenERP/6.1/server/openerp/addons/web/common/http.py", line 611, in send
      raise fault
  Fault: <Fault 2
  No such file or directory: 'Traceback (most recent call last):\n  File "/home/gass/OpenERP/6.1/server/openerp/addons/web/common/http.py", line 592, in send\n    result = openerp.netsvc.dispatch_rpc(service_name, method, args)\n  File "/home/gass/OpenERP/6.1/server/openerp/netsvc.py", line 360, in dispatch_rpc\n    result = ExportService.getService(service_name).dispatch(method, params)\n  File "/home/gass/OpenERP/6.1/server/openerp/service/web_services.py", line 586, in dispatch\n    res = fn(db, uid, *params)\n  File "/home/gass/OpenERP/6.1/server/openerp/osv/osv.py", line 167, in execute_kw\n    return self.execute(db, uid, obj, method, *args, **kw or {})\n  File "/home/gass/OpenERP/6.1/server/openerp/osv/osv.py", line 121, in wrapper\n    return f(self, dbname, *args, **kwargs)\n  File "/home/gass/OpenERP/6.1/server/openerp/osv/osv.py", line 176, in execute\n    res = self.execute_cr(cr, uid, obj, method, *args, **kw)\n  File "/home/gass/OpenERP/6.1/server/openerp/addons/audittrail/audittrail.py", line 495, in execute_cr\n    return fct_src(cr, uid, model, method, *args)\n  File "/home/gass/OpenERP/6.1/server/openerp/osv/osv.py", line 164, in execute_cr\n    return getattr(object, method)(cr, uid, *args, **kw)\n  File "/home/gass/OpenERP/6.1/server/openerp/addons/base/ir/ir_attachment.py", line 101, in read\n    return super(ir_attachment, self).read(cr, uid, ids, fields_to_read, context, load)\n  File "/home/gass/OpenERP/6.1/server/openerp/osv/orm.py", line 3416, in read\n    result = self._read_flat(cr, user, select, fields, context, load)\n  File "/home/gass/OpenERP/6.1/server/openerp/osv/orm.py", line 3539, in _read_flat\n    res2 = self._columns[f].get(cr, self, ids, f, user, context=context, values=res)\n  File "/home/gass/OpenERP/6.1/server/openerp/osv/fields.py", line 1129, in get\n    result = self._fnct(obj, cr, uid, ids, name, self._arg, context)\n  File "/home/gass/OpenERP/6.1/server/openerp/addons/document/document.py", line 89, in _data_get\n    data = fnode.get_data(cr, fbro)\n  File "/home/gass/OpenERP/6.1/server/openerp/addons/document/nodes.py", line 1280, in get_data\n    return stobj.get_data(cr, self.context.uid,stor, self,self.context.context, fil_obj)\n  File "/home/gass/OpenERP/6.1/server/openerp/addons/document/document_storage.py", line 433, in get_data\n    return self.__get_data_3(cr, uid, boo, ira, context)\n  File "/home/gass/OpenERP/6.1/server/openerp/addons/document/document_storage.py", line 499, in __get_data_3\n    return file(fpath, \'rb\').read()\nIOError: [Errno 2] No such file or directory: u\'/srv/openerp/instances/openerp_prod_chricar/filestore/openerp_prod_blau/hPBJiNFiTa/vBTSNCbdEZ\'\n'>

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1031921/+subscriptions


References