Incorrect serialization of binary strings by jsonutils in Python 3

Bug #1599387 reported by Gevorg Davoian
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
oslo.serialization
Fix Released
Undecided
Gevorg Davoian

Bug Description

In [1]: from oslo_serialization import jsonutils as j

In [2]: s = b'abc'

In [3]: j.dumps(s)
Out[3]: '[97, 98, 99]'

In [4]: j.loads(j.dumps(s))
Out[4]: [97, 98, 99]

P.S.: msgpack handles this case without any problems

Changed in oslo.serialization:
assignee: nobody → Gevorg Davoian (gdavoian)
Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/oslo.serialization 2.13.0

This issue was fixed in the openstack/oslo.serialization 2.13.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

This issue was fixed in the openstack/oslo.serialization 2.13.0 release.

Ben Nemec (bnemec)
Changed in oslo.serialization:
status: New → Fix Released
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.