Centos 5.4 / python 2.5 : error at the database creation

Bug #690559 reported by Romain Deheele - Camptocamp
16
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Fix Released
Medium
OpenERP's Framework R&D

Bug Description

Hello,

server: rev3112
client web : rev4105
addons : rev4011

When I launch my web browser, I have this error at the database creation :
When I create the database on the gtk client, I haven't this error, but when I access with my web browser, I have the same error.

[2010-12-15 09:58:13,373][pap] INFO:i18n:loading /home/romain/openobject-addons/base_setup/i18n/fr.po
[2010-12-15 09:58:13,735][pap] WARNING:i18n:module web_livechat: no translation for language fr
[2010-12-15 09:58:13,809][pap] INFO:web-service:successful login from 'admin' using database 'paper'
[2010-12-15 09:58:13,928][pap] INFO:base.ir.module.module:Sending web content of modules [u'web_livechat'] to web client
[2010-12-15 09:58:13,938][pap] ERROR:web-services:Uncaught exception
Traceback (most recent call last):
  File "/home/romain/openobject-server/bin/osv/osv.py", line 122, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/romain/openobject-server/bin/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/romain/openobject-server/bin/osv/osv.py", line 167, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/romain/openobject-server/bin/addons/base/module/module.py", line 568, in get_web
    for module in modules
  File "/home/romain/openobject-server/bin/addons/__init__.py", line 228, in zip_directory
    archive.writepy(directory)
  File "/usr/lib64/python2.5/zipfile.py", line 756, in writepy
    self.write(fname, arcname)
  File "/usr/lib64/python2.5/zipfile.py", line 568, in write
    self.fp.write(zinfo.FileHeader())
  File "/usr/lib64/python2.5/zipfile.py", line 260, in FileHeader
    return header + self.filename + extra
UnicodeDecodeError: 'ascii' codec can't decode byte 0x99 in position 10: ordinal not in range(128)
[2010-12-15 09:58:14,022][pap] INFO:base.ir.module.module:Sending web content of modules [u'web_livechat'] to web client
[2010-12-15 09:58:14,043][pap] ERROR:web-services:Uncaught exception
Traceback (most recent call last):
  File "/home/romain/openobject-server/bin/osv/osv.py", line 122, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/romain/openobject-server/bin/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/romain/openobject-server/bin/osv/osv.py", line 167, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/romain/openobject-server/bin/addons/base/module/module.py", line 568, in get_web
    for module in modules
  File "/home/romain/openobject-server/bin/addons/__init__.py", line 228, in zip_directory
    archive.writepy(directory)
  File "/usr/lib64/python2.5/zipfile.py", line 756, in writepy
    self.write(fname, arcname)
  File "/usr/lib64/python2.5/zipfile.py", line 568, in write
    self.fp.write(zinfo.FileHeader())
  File "/usr/lib64/python2.5/zipfile.py", line 260, in FileHeader
    return header + self.filename + extra
UnicodeDecodeError: 'ascii' codec can't decode byte 0x99 in position 10: ordinal not in range(128)

Related branches

Revision history for this message
Romain Deheele - Camptocamp (romaindeheele) wrote :

Hello,

In fact, the problem is coming from the addon 'web_livechat'
I delete it, and the installation works!
Then it's an openobject-addons bug.

Revision history for this message
Antony Lesuisse (OpenERP) (al-openerp) wrote :

When generating the zipfile to transfer the content of the web/ directory of the module to the webclient.
Some part of the constructed filename is unicode and is added to a 8bit str.
Setting the project and team to server.

affects: openobject-client-web → openobject-server
Changed in openobject-server:
importance: Undecided → Medium
status: New → Confirmed
Changed in openobject-server:
assignee: nobody → OpenERP's Framework R&D (openerp-dev-framework)
Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote :

Hello Romain,

This has been fixed in revision 3137 of the server, so updating to the latest version should solve this issue (revision-id: <email address hidden>)

Thank you for reporting!

Changed in openobject-server:
milestone: none → 6.0-rc2
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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