[SERVER-40217] [FLE] Error on update and findAndModify commands on mongocryptd if they would produce an encrypted array Created: 19/Mar/19 Updated: 27/Oct/23 Resolved: 09/Apr/19 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Querying |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | David Storch | Assignee: | David Storch |
| Resolution: | Gone away | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Sprint: | Query 2019-04-22 |
| Participants: |
| Description |
|
For instance, we need to fail on {$set: {foo: [1, 2, 3]}} if the schema indicates that "foo" is an encrypted field. We also need to fail if we would be encrypting a single element of an array. |
| Comments |
| Comment by David Storch [ 09/Apr/19 ] |
|
This work was completed under pawel.terlecki, when you complete mongocryptd support for the findAndModify command, you should make sure to test that it correctly fails on an attempt to encrypt arrays. |