Error storing jobs with unicode arguments
Bug #1288187 reported by
Stéphane Bidoul (Acsone)
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenERP Connector |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Hello,
Jobs with unicode arguments cannot be stored.
This is because the framework attemps to store pickles in a string column and postgres attempts to do a unicode conversion.
I attach a MP with a test that reproduces the error and a proposed fix.
The drawback of this fix is that it is not backward compatible with existing stored jobs.
-sbi
Related branches
lp:~acsone-openerp/openerp-connector/bug-1288187-sbi-unicode
Rejected
for merging
into
lp:~openerp-connector-core-editors/openerp-connector/7.0
- Guewen Baconnier @ Camptocamp: Needs Information
-
Diff: 34 lines (+3/-3)2 files modifiedconnector/queue/job.py (+2/-2)
connector/tests/test_job.py (+1/-1)
lp:~camptocamp/openerp-connector/7.0-unicode-pickled-1288187
- Leonardo Pistone (community): Approve (code review)
- Stéphane Bidoul (Acsone) (community): Approve (code review and test)
- OpenERP Connector Core Editors: Pending requested
-
Diff: 112 lines (+51/-4)5 files modifiedconnector/__openerp__.py (+1/-1)
connector/migrations/2.2.0/pre-migration.py (+9/-0)
connector/queue/job.py (+2/-2)
connector/queue/model.py (+1/-1)
connector/tests/test_job.py (+38/-0)
Changed in openerp-connector: | |
status: | Confirmed → Fix Committed |
Changed in openerp-connector: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Hi Stéphane,
we need some more information. From a terminal window please run:
sudo apport-collect 1288187
and then change the status of the bug to 'Confirmed'.
Jörg