[Trunk] document_ftp module is not install with the latest trunk code.

Bug #810983 reported by Vinay Rana (OpenERP)
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
High
OpenERP R&D Addons Team 1

Bug Description

when I tried to install this module I did face following traceback:

2011-07-15 15:49:10,602][?] ERROR:web-services:Uncaught exception
Traceback (most recent call last):
  File "/home/vra/workspace/trunk/server/openerp/osv/osv.py", line 118, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/vra/workspace/trunk/server/openerp/osv/osv.py", line 172, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/vra/workspace/trunk/server/openerp/osv/osv.py", line 163, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/vra/workspace/trunk/server/openerp/addons/base/module/wizard/base_module_upgrade.py", line 44, in fields_view_get
    res = super(base_module_upgrade, self).fields_view_get(cr, uid, view_id=view_id, view_type=view_type, context=context, toolbar=toolbar,submenu=False)
  File "/home/vra/workspace/trunk/server/openerp/osv/orm.py", line 1917, in fields_view_get
    WHERE id=%s""", (view_id,))
  File "/home/vra/workspace/trunk/server/openerp/sql_db.py", line 153, in wrapper
    return f(self, *args, **kwargs)
  File "/home/vra/workspace/trunk/server/openerp/sql_db.py", line 213, in execute
    res = self._obj.execute(query, params)
InternalError: current transaction is aborted, commands ignored until end of transaction block

Related branches

Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 1 (openerp-dev-addons1)
importance: Undecided → High
status: New → Confirmed
Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Bhumika Shrimali (sbh-openerp) wrote :

hello,

It has been fixed in lp:~openerp-dev/openobject-addons/trunk-bug-810983-sbh
Revision ID: <email address hidden>
Revision num: 4890.

Changed in openobject-addons:
status: In Progress → Fix Committed
Revision history for this message
Fabien (Open ERP) (fp-tinyerp) wrote :

I reopen the bug as the fix was not correct: we can not put cr;commit on tests as all tests must be rollbacked.

Changed in openobject-addons:
status: Fix Committed → Confirmed
Revision history for this message
xrg (xrg) wrote : Re: [Bug 810983] Re: [Trunk] document_ftp module is not install with the latest trunk code.

On Saturday 24 September 2011, you wrote:
> I reopen the bug as the fix was not correct: we can not put cr;commit on
> tests as all tests must be rollbacked.

Well, this is _not_ possible for the FTP, WebDAV etc. tests[1].
You see, these tests open FTP client connections to the server, which have
their own atomic transactions.

So, a part of the test like:
   !record {model: ir.attachment, id: foo_file1}:
      .....

will not be visible to the FTP client *unless* a cr.commit() is performed.

It is true that we don't want to leave garbage from these tests behind. The
only thing we could do about that was to put all the attachments/folders under
some temporary-testing folders and cleanup at the end of the YAML test.

[1] including any future tests in modules with external connectivity

--
Say NO to spam and viruses. Stop using Microsoft Windows!

Changed in openobject-addons:
status: Confirmed → In Progress
Changed in openobject-addons:
status: In Progress → Confirmed
Revision history for this message
tfr (Openerp) (tfr) wrote :

Actually the module is installing but the ftp server is not launch. the connection is refused even on localhost

Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Bhumika Shrimali (sbh-openerp) wrote :

hello,

It has been fixed in lp:~openerp-dev/openobject-addons/trunk-bug-document_ftp-sbh.

Revision ID: <email address hidden>
Revision 6084.

I have put "document_ftp_test4.yml'," yml file in comment because I have send the new mp for that yml file.

Thanks

Changed in openobject-addons:
status: In Progress → Fix Committed
Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote :

I've double-checked at server r.4061 with addons r.6587 and the document_ftp module now seems to install and start fine, so we can close this bug - no further changes seem to be needed.

Thanks for your efforts

Changed in openobject-addons:
status: Fix Committed → Fix Released
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.