[SERVER-77723] Turn parseNamespaceFromRequest calls to deserialize in IDL Created: 01/Jun/23  Updated: 29/Oct/23  Resolved: 10/Aug/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: Hugh Tong (Inactive) Assignee: Hugh Tong (Inactive)
Resolution: Fixed Votes: 0
Labels: ntdi_must_have
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-79087 Pass serialization context into GetQu... Closed
depends on SERVER-79574 Pass serialization context into makeF... Closed
is depended on by SERVER-74907 Use tassert in NamespaceStringUtil fu... Closed
is depended on by SERVER-75930 Change command serialization/deserial... Closed
is depended on by SERVER-77111 Remove redundant command target parsi... Closed
is depended on by SERVER-78486 Replace parseNamespaceFrom* calls wit... Closed
Backwards Compatibility: Fully Compatible
Sprint: Server Serverless 2023-07-24, Server Serverless 2023-08-07, Server Serverless 2023-08-21
Participants:

 Description   

We currently call NamespaceStringUtil::parseNamespaceFromRequest() to deserialize the top-level namespace string object in command requests, but are not passing in the serialization context.  This prevents us from deserializing into the namespace string object correctly according to the request's expectPrefix field, so we need to address this.

Tests are not currently failing around this because we have not yet introduced the expectPrefix field in our requests yet, so we will need to add some testing for this.



 Comments   
Comment by Githook User [ 08/Aug/23 ]

Author:

{'name': 'Hugh Tong', 'email': 'hugh.tong@mongodb.com', 'username': 'cortrain'}

Message: SERVER-77723 Turn parseNamespaceFromRequest calls to deserialize in IDL
Branch: master
https://github.com/mongodb/mongo/commit/6094ca75e66cca49b5577ee25e4cafa62bc4b2bf

Comment by Sophia Tan [ 12/Jul/23 ]

Please replace the `parseNamespaceFromRequest` with `NamespaceStringUtil::serialize` function.

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