[JAVA-2360] Binary subtype should be output as a two-digit padded hexadecimal string in JSON representation Created: 14/Oct/16  Updated: 19/Oct/16  Resolved: 17/Oct/16

Status: Closed
Project: Java Driver
Component/s: JSON
Affects Version/s: None
Fix Version/s: 3.5.0

Type: Bug Priority: Minor - P4
Reporter: Jeffrey Yemin Assignee: Jeffrey Yemin
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Currently the leading 0 is omitted when formatting a one digit binary subtype as JSON:

{ ... "$type" : "0"}

Expected result according to the Extended JSON specification is:

{ ... "$type" : "00"}



 Comments   
Comment by Githook User [ 17/Oct/16 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: JAVA-2360: Format binary subtype as a two-digit padded hexadecimal string
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/3146eab23c909edfa1877a7604292b868c998b19

Generated at Thu Feb 08 08:57:00 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.