Details
-
Bug
-
Resolution: Fixed
-
Major - P3
-
None
-
None
-
Fully Compatible
-
v6.2, v6.1, v6.0
-
-
QO 2022-12-12, Security 2022-11-28
Description
Suppose foo is a QE equality indexed field, bar is a unencrypted field, and testcoll is an encrypted collection containing a single document: {foo: "foovalue"}.
Running this command with upsert:
db.testcoll.updateOne(
|
{ $and: [{foo: "foovalue"}, {bar: "barvalue"}]},
|
{ $set: { foo: "other_foovalue", bar: "other_barvalue" } },
|
{ upsert: true }
|
)
|
fails with the error message: Plan executor error during findAndModify :: caused by :: The field '_safeContent_' must be an array but is of type binData in document {no id}