[SERVER-39104] In Stitch Support Library indicate BSON arrays are not strings by using a non-char* C type Created: 18/Jan/19  Updated: 29/Oct/23  Resolved: 23/Jan/19

Status: Closed
Project: Core Server
Component/s: Querying
Affects Version/s: None
Fix Version/s: 4.1.8

Type: Improvement Priority: Major - P3
Reporter: Jacob Evans Assignee: Jacob Evans
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Query 2019-01-28
Participants:

 Description   

stitch_support.h uses char* for BSON arrays which has lead to some confusion when consumers expect char* to indicate a null-terminated string. We should adjust the type to something else to prevent the incorrect assumption.



 Comments   
Comment by Githook User [ 23/Jan/19 ]

Author:

{'email': 'gregory.wlodarek@mongodb.com', 'name': 'Gregory Wlodarek', 'username': 'GWlodarek'}

Message: SERVER-39104 Fix lint
Branch: master
https://github.com/mongodb/mongo/commit/b49d3386ab13567125a8a4adfc541100de2b3dcd

Comment by Githook User [ 23/Jan/19 ]

Author:

{'email': 'jacob.evans@10gen.com', 'name': 'Jacob Evans'}

Message: SERVER-39104 Use uint8_t for stitch lib BSON types
Branch: master
https://github.com/mongodb/mongo/commit/e7b1c689b632610399ab716a98f125605dd8a11c

Generated at Thu Feb 08 04:51:02 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.