Details
-
Improvement
-
Resolution: Unresolved
-
Major - P3
-
None
-
None
-
None
-
Query Optimization
-
Fully Compatible
-
(copied to CRM)
Description
With this schema:
{
|
type: "object", |
properties: {
|
foo: {
|
encrypt: {
|
algorithm: "AEAD_AES_256_CBC_HMAC_SHA_512-Random", |
keyId: "/key", |
bsonType: "int" |
}
|
}
|
}
|
}
|
This update should pass:
{q: {}, u: {foo: NumberInt(6), key: "hello"}} |
Since all the information necessary for encrypting the literal is included in the replacement-style update (as it would in an insert).
But instead it fails with code 51093 and error message "A non-static (JSONPointer) keyId is not supported."