[SERVER-75894] IDL should allow cpp_namespace other than mongo. Created: 10/Apr/23  Updated: 29/Oct/23  Resolved: 31/May/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.1.0-rc0

Type: Task Priority: Major - P3
Reporter: Sandeep Dhoot Assignee: Mark Benvenuto
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Assigned Teams:
Server Security
Backwards Compatibility: Fully Compatible
Sprint: Security 2023-05-29, Security 2023-06-12
Participants:
Linked BF Score: 152

 Description   

Setting cpp_namespace to anything other than `mongo` or a namespace nested within `mongo` causes compilation errors in the generated code:

build/debug/mongo/db/modules/enterprise/src/streams/exec/connection_gen.h:117:20: error: unknown type name 'BSONObj'; did you mean 'mongo::BSONObj'?
void setAnchor(BSONObj&& obj) {
^~~~~~~
mongo::BSONObj



 Comments   
Comment by Githook User [ 31/May/23 ]

Author:

{'name': 'Mark Benvenuto', 'email': 'mark.benvenuto@mongodb.com', 'username': 'markbenvenuto'}

Message: SERVER-75894 IDL should ensure cpp_namespace starts with mongo
Branch: master
https://github.com/mongodb/mongo/commit/38e7256b0c93219332d8e8c000b12bfe0832ec53

Comment by Githook User [ 30/May/23 ]

Author:

{'name': 'Mark Benvenuto', 'email': 'mark.benvenuto@mongodb.com', 'username': 'markbenvenuto'}

Message: SERVER-75894 IDL should ensure cpp_namespace starts with mongo
Branch: master
https://github.com/mongodb/mongo/commit/868c3cded63eb2277c1d301772e904b0b92fad2e

Generated at Thu Feb 08 06:31:20 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.