← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 695904] [NEW] Problem creating .odt report

 

Public bug reported:

Hello,

In Low level object / action / report:
When I create report with "odt" Report Type the following error message generated:
"Bad magic number for central directory".

Trace back:
 ERROR:web-services:[01]: Exception: Bad magic number for central directory
 ERROR:web-services:[02]: Traceback (most recent call last):
 ERROR:web-services:[03]:   File "/home/tiny/workspace/trunk/server/bin/service/web_services.py", line 723, in go
 ERROR:web-services:[04]:     (result, format) = obj.create(cr, uid, ids, datas, context)
 ERROR:web-services:[05]:   File "/home/tiny/workspace/trunk/server/bin/report/report_sxw.py", line 423, in create
 ERROR:web-services:[06]:     fnct_ret = fnct(cr, uid, ids, data, report_xml, context)
 ERROR:web-services:[07]:   File "/home/tiny/workspace/trunk/server/bin/report/report_sxw.py", line 429, in create_source_odt
 ERROR:web-services:[08]:     return self.create_single_odt(cr, uid, ids, data, report_xml, context or {})
 ERROR:web-services:[09]:   File "/home/tiny/workspace/trunk/server/bin/report/report_sxw.py", line 518, in create_single_odt
 ERROR:web-services:[10]:     sxw_z = zipfile.ZipFile(sxw_io, mode='r')
 ERROR:web-services:[11]:   File "/usr/lib/python2.6/zipfile.py", line 696, in __init__
 ERROR:web-services:[12]:     self._GetContents()
 ERROR:web-services:[13]:   File "/usr/lib/python2.6/zipfile.py", line 716, in _GetContents
 ERROR:web-services:[14]:     self._RealGetContents()

Thanks.

** Affects: openobject-server
     Importance: Medium
     Assignee: OpenERP's Framework R&D (openerp-dev-framework)
         Status: Confirmed

** Changed in: openobject-server
   Importance: Undecided => Medium

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

** Changed in: openobject-server
     Assignee: (unassigned) => OpenERP's Framework R&D (openerp-dev-framework)

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/695904

Title:
  Problem creating .odt report

Status in OpenObject Server:
  Confirmed

Bug description:
  Hello,

In Low level object / action / report:
When I create report with "odt" Report Type the following error message generated:
"Bad magic number for central directory".

Trace back:
 ERROR:web-services:[01]: Exception: Bad magic number for central directory
 ERROR:web-services:[02]: Traceback (most recent call last):
 ERROR:web-services:[03]:   File "/home/tiny/workspace/trunk/server/bin/service/web_services.py", line 723, in go
 ERROR:web-services:[04]:     (result, format) = obj.create(cr, uid, ids, datas, context)
 ERROR:web-services:[05]:   File "/home/tiny/workspace/trunk/server/bin/report/report_sxw.py", line 423, in create
 ERROR:web-services:[06]:     fnct_ret = fnct(cr, uid, ids, data, report_xml, context)
 ERROR:web-services:[07]:   File "/home/tiny/workspace/trunk/server/bin/report/report_sxw.py", line 429, in create_source_odt
 ERROR:web-services:[08]:     return self.create_single_odt(cr, uid, ids, data, report_xml, context or {})
 ERROR:web-services:[09]:   File "/home/tiny/workspace/trunk/server/bin/report/report_sxw.py", line 518, in create_single_odt
 ERROR:web-services:[10]:     sxw_z = zipfile.ZipFile(sxw_io, mode='r')
 ERROR:web-services:[11]:   File "/usr/lib/python2.6/zipfile.py", line 696, in __init__
 ERROR:web-services:[12]:     self._GetContents()
 ERROR:web-services:[13]:   File "/usr/lib/python2.6/zipfile.py", line 716, in _GetContents
 ERROR:web-services:[14]:     self._RealGetContents()

Thanks.





Follow ups

References