[SERVER-67375] Make findAndModify updateShardKey work with FLE2 Created: 17/Jun/22  Updated: 29/Oct/23  Resolved: 16/Aug/22

Status: Closed
Project: Core Server
Component/s: Queryable Encryption
Affects Version/s: None
Fix Version/s: 6.1.0-rc0

Type: Bug Priority: Major - P3
Reporter: Shreyas Kalyan Assignee: Shreyas Kalyan
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Related
related to SERVER-66662 Block insertion into __safeContent__ Closed
Backwards Compatibility: Fully Compatible
Sprint: Security 2022-07-11, Security 2022-07-25, Security 2022-08-08, Security 2022-08-22
Participants:

 Description   

Currently, when mongos receives a findAndModify command, it occasionally attempts to update the shardKey on the collection. When it attempts to update the findAndModify command, it splits the command into a delete and an insert. However, the encryptionInformation struct is not propagated to the new delete and insert command. We should find a way to pass the relevant information from the encryptionInformation struct into the findAndModify command.

This will also affect update.



 Comments   
Comment by Githook User [ 16/Aug/22 ]

Author:

{'name': 'Shreyas Kalyan', 'email': 'shreyas.kalyan@mongodb.com', 'username': 'shreyaskal'}

Message: SERVER-67375 Make findAndModify updateShardKey work with FLE2
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/4e0c0d718e2909af2ced3c4155a82e0cfef2bb1f

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