← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 670228] Re: Report generation crashes on web-client (64 Bit OS)

 

I've just started getting similar issues with a incorrect padding that
seems to be related to use of the company logo.

Traceback (most recent call last):
  File "/usr/share/openerp-server/service/web_services.py", line 711, in go
    (result, format) = obj.create(cr, uid, ids, datas, context)
  File "/usr/share/openerp-server/report/report_sxw.py", line 399, in create
    fnct_ret = fnct(cr, uid, ids, data, report_xml, context)
  File "/usr/share/openerp-server/report/report_sxw.py", line 462, in create_source_pdf
    return self.create_single_pdf(cr, uid, ids, data, report_xml, context)
  File "/usr/share/openerp-server/report/report_sxw.py", line 482, in create_single_pdf
    logo = base64.decodestring(rml_parser.logo)
  File "/usr/lib/python2.6/base64.py", line 321, in decodestring
    return binascii.a2b_base64(s)
Error: Incorrect padding

I'm also using 64 bit ubuntu 10.04 FWIW. Its a major annoyance if you
cant change reports, so please fix

-- 
Report generation crashes on web-client (64 Bit OS)
https://bugs.launchpad.net/bugs/670228
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.

Status in OpenObject Addons Modules: Confirmed

Bug description:
When we try to generate an accounting report from the web client. ( 6.0 RC1 )

For example.

The General Ledger report from Accounting division
 ( Reporting -> Legal Reports -> Accounting Reports -> General Ledger )

It crashes with the message - (<class 'binascii.Error'>, Error('Incorrect padding',), <traceback object at 0x4b1f200>)

We are using 64 bit Ubuntu 10.04 LTS. This seems to work fine when running on a 32 bit Ubuntu 10.04 LTS.

After a bit of googling we found that the issue maybe with Python libraries (?) that you are using.

The source code we are using is the same that is published on the OpenERP website ( 6.0 RC1 )





References