lp:~camptocamp/openerp-connector/7.0-unicode-pickled-1288187
Created by
Guewen Baconnier @ Camptocamp
and last modified
- Get this branch:
- bzr branch lp:~camptocamp/openerp-connector/7.0-unicode-pickled-1288187
Members of
Camptocamp
can upload to this branch. Log in for directions.
Branch merges
Propose for merging
No branches
dependent on this one.
- 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)
Related bugs
Bug #1288187: Error storing jobs with unicode arguments | Undecided | Fix Released |
Related blueprints
Branch information
Recent revisions
- 628. By Guewen Baconnier @ Camptocamp
-
func::bytea can fail to convert the string to bytea because it interprets the backshlashes. Use convert_to to LATIN1 instead
- 626. By Guewen Baconnier @ Camptocamp
-
more interesting to read the values after the write/read roundtrip than the values set in the Job instance...
- 623. By Guewen Baconnier @ Camptocamp
-
compare the job with the values to ensure the encoding is correct
- 622. By Guewen Baconnier @ Camptocamp
-
migrate the text field containing the pickled function to a bytea field
- 621. By Guewen Baconnier @ Camptocamp
-
[FIX] Jobs with unicode arguments cannot be stored.
The error here is that pickled data are binary data. Psycopg2 tries to decode
data to UTF-8 which is not possible because this is not UTF-8 data but binary
data.Use a binary field rather than a text field.
- 620. By Launchpad Translations on behalf of openerp-connector-core-editors
-
Launchpad automatic translations update.
- 619. By Launchpad Translations on behalf of openerp-connector-core-editors
-
Launchpad automatic translations update.
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)