[SERVER-40901] FLE FindAndModify missing "findandmodify" field in placeholder result Created: 29/Apr/19  Updated: 29/Oct/23  Resolved: 13/May/19

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

Type: Bug Priority: Major - P3
Reporter: Shreyas Kalyan Assignee: Pawel Terlecki
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: Query 2019-05-20
Participants:

 Description   

For all the query analysis functions, processXCommand returns a bson object with

{"X": collection, ...}

except for processFindAndModifyCommand, which doesn't include the "findandmodify" field.



 Comments   
Comment by Githook User [ 13/May/19 ]

Author:

{'email': 'pawel.terlecki@mongodb.com', 'name': 'Pawel Terlecki', 'username': 'pterlecki'}

Message: SERVER-40901: Handle legacy findandmodify name in query analysis

We need to have a special case for findandmodify to make sure the field
with the collection name does not get stripped out in encoding. In order
to keep the same shaper of ProcessQueryCommand as other similar methods,
a special case got added.
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/99310abe74651d02ef8d406ae8d0f2788a537087

Comment by Pawel Terlecki [ 08/May/19 ]

shreyas.kalyan, do you have a repro for this one? It worked for me and david.storch against mongocryptd with simple cases.

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