[SERVER-78723] Resharding a QE collection fails because of __safeContent__ Created: 06/Jul/23  Updated: 29/Oct/23  Resolved: 17/Jul/23

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

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

Issue Links:
Backports
Depends
is depended on by SERVER-77297 Add FLE workloads to resharding fuzzer. Open
Assigned Teams:
Server Security
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v7.0
Sprint: Security 2023-07-24
Participants:

 Description   

Resharding a QE-encrypted collection containing documents with __safeContent__ field fails with an error:

"msg":"Operation-fatal error for resharding while cloning sharded collection"

and with the following details:

"sourceNamespace":"fle2_reshard_collection.basic"
"outputNamespace":"fle2_reshard_collection.system.resharding.12ed75b9-d53a-44f1-8227-f8422ba39fce"
"error":"BadValue: Cannot insert a document with field name __safeContent__"

 



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

Author:

{'name': 'Erwin Pe', 'email': 'erwin.pe@mongodb.com', 'username': 'erwee'}

Message: SERVER-78723 Disable _safeContent_ validation for encrypted collections when resharding

(cherry picked from commit 99b50fc1a02f9f7059f2d327a8a7737b14d52ba3)
Branch: v7.0
https://github.com/mongodb/mongo/commit/042115becd2bd287856864bc022373c5680a86f3

Comment by Githook User [ 15/Jul/23 ]

Author:

{'name': 'Erwin Pe', 'email': 'erwin.pe@mongodb.com', 'username': 'erwee'}

Message: SERVER-78723 Disable _safeContent_ validation for encrypted collections when resharding
Branch: master
https://github.com/mongodb/mongo/commit/99b50fc1a02f9f7059f2d327a8a7737b14d52ba3

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