← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 670228] Re: Web-client corrupts binary fields (e.g. company logo)

 

Reassigning to correct project, this is indeed the web client corrupting binary/image fields in some conditions.
As Christophe found out, the base64 binary content is replaced by a URL path, such as "/openerp/image/get_image?field=logo&model=res.company&id=1"

This seems to happen mostly when a write concurrency error pops up, but
I cannot seem to be able to upload a company logo via web-client without
having a write concurrency error lately. (Reproduced with web client
trunk revision 4123)

Temporary workaround: remove the company logo or upload it again with
the GTK client.

** Project changed: openobject-server => openobject-client-web

-- 
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/670228

Title:
  Web-client corrupts binary fields (e.g. company logo)

Status in OpenObject Web Client:
  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