koo reports error if attachments are added or removed

Bug #416653 reported by Ferdinand
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KDE OpenObject Client
New
Undecided
Unassigned

Bug Description

adding or removing an attachment with ftp/sftp document module creates an error

 +--- This exception occured remotely (Pyro) - Remote traceback:
 | Traceback (most recent call last):
 | File "/usr/lib64/python2.5/site-packages/Pyro/protocol.py", line 669, in _handleInvocation2
 | res = obj.Pyro_dyncall(req[1],flags,req[3]) # (method,flags,args)
 | File "/usr/lib64/python2.5/site-packages/Pyro/core.py", line 108, in Pyro_dyncall
 | return getattr(self.delegate or self,method) (*args,**keywords)
 | File "/home/terp/OpenERP/branch/server/5.0/bin/addons/pyro.zip/pyro/pyro.py", line 48, in dispatch
 | result=method(*args)
 | File "/home/terp/OpenERP/branch/server/5.0/bin/addons/base_module_record/base_module_record.py", line 38, in execute
 | res = super(recording_objects_proxy, self).execute(*args, **argv)
 | File "/home/terp/OpenERP/branch/server/5.0/bin/addons/audittrail/audittrail.py", line 361, in execute
 | res = my_fct(db, uid, passwd, object, method, *args)
 | File "/home/terp/OpenERP/branch/server/5.0/bin/addons/audittrail/audittrail.py", line 351, in my_fct
 | return fct_src(db, uid, passwd, object, method, *args)
 | File "/home/terp/OpenERP/branch/server/5.0/bin/service/web_services.py", line 583, in execute
 | res = service.execute(db, uid, object, method, *args)
 | File "/home/terp/OpenERP/branch/server/5.0/bin/osv/osv.py", line 59, in wrapper
 | return f(self, dbname, *args, **kwargs)
 | File "/home/terp/OpenERP/branch/server/5.0/bin/osv/osv.py", line 119, in execute
 | res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
 | File "/home/terp/OpenERP/branch/server/5.0/bin/osv/osv.py", line 111, in execute_cr
 | return getattr(object, method)(cr, uid, *args, **kw)
 | File "/home/terp/OpenERP/branch/server/5.0/bin/addons/base/ir/ir_attachment.py", line 65, in read
 | return super(ir_attachment, self).read(cr, uid, ids, fields_to_read, context, load)
 | File "/home/terp/OpenERP/branch/server/5.0/bin/osv/orm.py", line 2054, in read
 | result = self._read_flat(cr, user, select, fields, context, load)
 | File "/home/terp/OpenERP/branch/server/5.0/bin/osv/orm.py", line 2165, in _read_flat
 | res2 = self._columns[f].get(cr, self, ids, f, user, context=context, values=res)
 | File "/home/terp/OpenERP/branch/server/5.0/bin/osv/fields.py", line 631, in get
 | res = self._fnct(obj, cr, user, ids, name, self._arg, context)
 | File "/home/terp/OpenERP/branch/server/5.0/bin/addons/document/document.py", line 538, in _data_get
 | cr.execute('select id,store_fname,link from ir_attachment where id in ('+','.join(map(str,ids))+')')
 | File "/home/terp/OpenERP/branch/server/5.0/bin/sql_db.py", line 76, in wrapper
 | return f(self, *args, **kwargs)
 | File "/home/terp/OpenERP/branch/server/5.0/bin/sql_db.py", line 120, in execute
 | res = self._obj.execute(query, params)
 | ProgrammingError: syntax error at or near ")"
 | LINE 1: select id,store_fname,link from ir_attachment where id in ()
 | ^
 |
 +--- End of remote traceback

Revision history for this message
Albert Cervera i Areny - http://www.NaN-tic.com (albert-nan) wrote : Re: [Bug 416653] [NEW] koo reports error if attachments are added or removed

A Dijous, 20 d'agost de 2009, Ferdinand @ ChriCar va escriure:
> adding or removing an attachment with ftp/sftp document module creates
> an error

Does the error fire when you upload/remove using an FTP browser or with Koo?
Note that you have several modules there, such as base_module_record,
audittrail and document.. Can you confirm that it works with GTK?

--
Albert Cervera i Areny
http://www.NaN-tic.com
Mòbil: +34 669 40 40 18

Changed in openobject-client-kde:
status: New → Incomplete
Revision history for this message
Ferdinand (office-chricar) wrote :

sorry if i was not clear
open attachments in koo
add or remove attachments for the same object - koo reports this error

Changed in openobject-client-kde:
status: Incomplete → New
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.