[COMPASS-4426] JSON export does not represent binary data properly Created: 25/Sep/20  Updated: 29/Oct/23  Resolved: 15/Oct/20

Status: Closed
Project: Compass
Component/s: Compass
Affects Version/s: None
Fix Version/s: 1.23.0

Type: Bug Priority: Major - P3
Reporter: Anna Henningsen Assignee: Anna Henningsen
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on NODE-2847 bson does not expose a default export Closed
Duplicate
is duplicated by COMPASS-4439 Binary data is exported as base64 but... Closed
Related
related to COMPASS-4502 Update bson to real version in compas... Closed
is related to COMPASS-4425 Export UUID fields and Import in wron... Closed
Documentation Changes: Not Needed
Sprint: Iteration Maracuja

 Description   

See HELP-18788 – looks like there is an extra combined ISO-8859-1 encoding + UTF8-decoding step that should not be happening when serializing binary data, and like the subtype information is lost



 Comments   
Comment by Anna Henningsen [ 15/Oct/20 ]

I’ll close this for now. Updating to bson@4.2.0 is more complicated than expected, so we’ll stick with our temporary fork for the time being.

Comment by Anna Henningsen [ 28/Sep/20 ]

I’ve merged a temporary fix that applies a (one-line) bugfix to the `bson` package. I’ll leave this ticket open and on blocked until the next official bson release, which should contain the bugfixes that we need.

Comment by Githook User [ 28/Sep/20 ]

Author:

{'name': 'Anna Henningsen', 'email': 'anna.henningsen@mongodb.com', 'username': 'addaleax'}

Message: COMPASS-4426 - Work around bson package bugs (#2022)
Branch: master
https://github.com/mongodb-js/compass/commit/d3fc0a7e841cf3b14bd59ed788e097fb379c2308

Comment by Githook User [ 28/Sep/20 ]

Author:

{'name': 'Anna Henningsen', 'email': 'anna.henningsen@mongodb.com', 'username': 'addaleax'}

Message: COMPASS-4426 - Work around bson package bugs
Branch: 4426-dev
https://github.com/mongodb-js/compass/commit/b1beae7a7849f74ba3f2b600a903aee34817446e

Generated at Wed Feb 07 22:36:19 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.