[DMS] Error when retrieve list of directory.

Bug #301004 reported by Christophe CHAUVET
4
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Undecided
Unassigned

Bug Description

Fail to retrieve a list of directories, there is an error message in OpenERP Server
-------------8<--------------------------------------------8<-----------------
[]127.0.0.1:54135 Connected.
127.0.0.1:54135 ==> 220 pyftpdlib 0.4.0 ready.
127.0.0.1:54135 <== USER admin
127.0.0.1:54135 ==> 331 Username ok, send password.
127.0.0.1:54135 <== PASS ******
127.0.0.1:54135 ==> 230 Welcome on OpenERP document management system.
[admin]@127.0.0.1:54135 User admin logged in.
127.0.0.1:54135 <== TYPE I
127.0.0.1:54135 ==> 200 Type set to: Binary.
127.0.0.1:54135 <== FEAT
127.0.0.1:54135 ==> 211 End FEAT.
127.0.0.1:54135 <== EPSV ALL
127.0.0.1:54135 ==> 220 Other commands other than EPSV are now disabled.
127.0.0.1:54135 <== SYST
127.0.0.1:54135 ==> 215 UNIX Type: L8
127.0.0.1:54135 <== NOOP
127.0.0.1:54135 ==> 200 I successfully done nothin'.
127.0.0.1:54135 <== NOOP
127.0.0.1:54135 ==> 200 I successfully done nothin'.
127.0.0.1:54135 <== CWD /
[admin]@127.0.0.1:54135 OK CWD "/".
127.0.0.1:54135 ==> 250 "/" is the current directory.
127.0.0.1:54135 <== EPSV
127.0.0.1:54135 ==> 229 Entering extended passive mode (|||58627|).
127.0.0.1:54135 <== LIST
Traceback (most recent call last):
  File "/usr/lib/python2.5/asyncore.py", line 68, in read
    obj.handle_read_event()
  File "/usr/lib/python2.5/asyncore.py", line 390, in handle_read_event
    self.handle_read()
  File "/usr/lib/python2.5/asynchat.py", line 137, in handle_read
    self.found_terminator()
  File "/home/kryskool/openerp50/openerp/server/bin/addons/document/ftpserver/ftpserver.py", line 1576, in found_terminator
    method(arg) # call the proper ftp_* method
  File "/home/kryskool/openerp50/openerp/server/bin/addons/document/ftpserver/ftpserver.py", line 2038, in ftp_LIST
    iterator = self.run_as_current_user(self.fs.get_list_dir, path)
  File "/home/kryskool/openerp50/openerp/server/bin/addons/document/ftpserver/ftpserver.py", line 1807, in run_as_current_user
    return function(*args, **kwargs)
  File "/home/kryskool/openerp50/openerp/server/bin/addons/document/ftpserver/abstracted_fs.py", line 595, in get_list_dir
    listing = self.listdir(path)
  File "/home/kryskool/openerp50/openerp/server/bin/addons/document/ftpserver/abstracted_fs.py", line 344, in listdir
    for db in self.db_list():
  File "/home/kryskool/openerp50/openerp/server/bin/addons/document/ftpserver/abstracted_fs.py", line 75, in db_list
    cr.execute("select id from ir_module_module where name like 'document%' and state='installed' ")
  File "/home/kryskool/openerp50/openerp/server/bin/sql_db.py", line 71, in execute
    res = self.obj.execute(sql)
ProgrammingError: ERREUR: la relation « ir_module_module » n'existe pas

select id from ir_module_module where name like 'document%' and state='installed'

[admin]@127.0.0.1:54135 Disconnected.
-------------8<--------------------------------------------8<-----------------

Revision history for this message
Christophe CHAUVET (christophe-chauvet) wrote :

I found the problem, when 1 database don't have a document module installed it failed to connect.

If all databases have document module, it work very well

Correct the code, to ignore the database who doesn't have document mdoule installed.

Revision history for this message
Christophe Simonis (OpenERP) (kangol) wrote :

No.

The problem came from the fact that you have non-openerp databases...

Revision history for this message
Fabien (Open ERP) (fp-tinyerp) wrote :

Yes, and this is something we must fix.

Revision history for this message
Christophe Simonis (OpenERP) (kangol) wrote :

Fixed.

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