Column type for BranchMergeProposalJob.json_data should support binary

Bug #322819 reported by Aaron Bentley
2
Affects Status Importance Assigned to Milestone
Launchpad itself
Won't Fix
High
Unassigned

Bug Description

JSON is defined in terms of bytes, and our json encoder produces bytestrings.
However, the column type is TEXT, which Storm treats as unicode.

We should change the column type to one that supports bytes.

Marking high because we should patch the db before we get any data that would require re-encoding.

Aaron Bentley (abentley)
Changed in launchpad-bazaar:
importance: Undecided → High
status: New → Triaged
Revision history for this message
Tim Penhey (thumper) wrote :

I'm not sure that changing it to binary is the right thing. We talked about this but I don't remember the resolution.

Revision history for this message
Stuart Bishop (stub) wrote :

These byte strings are text in a particular character set. We should convert them to Unicode and store them as Unicode.

Changed in launchpad-bazaar:
status: Triaged → Won't Fix
Curtis Hovey (sinzui)
tags: added: tech-debt
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.