[SERVER-49489] IDL doesn't properly deal with an optional string field when part of a chained struct Created: 14/Jul/20  Updated: 29/Oct/23  Resolved: 15/Jul/20

Status: Closed
Project: Core Server
Component/s: IDL
Affects Version/s: None
Fix Version/s: 4.7.0

Type: Bug Priority: Major - P3
Reporter: Samyukta Lanka Assignee: Mark Benvenuto
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Security 2020-07-27
Participants:

 Description   

Chaining a struct that has an optional string field fails to compile because:

no viable conversion from 'std::string' (aka 'basic_string<char>') to 'boost::optional<StringData>'



 Comments   
Comment by Githook User [ 15/Jul/20 ]

Author:

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

Message: SERVER-49489 IDL doesn't properly deal with an optional string field when part of a chained struct
Branch: master
https://github.com/mongodb/mongo/commit/f5926f7c0867bf2726313e8c27be1871c6c16ecb

Generated at Thu Feb 08 05:19:59 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.