[SERVER-8526] Validate modifiers for updates, error if invalid. Created: 12/Feb/13 Updated: 06/Dec/22 Resolved: 28/Jun/17 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Usability, Write Ops |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Scott Hernandez (Inactive) | Assignee: | Backlog - Query Team (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | api, validation | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Assigned Teams: |
Query
|
||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||
| Operating System: | ALL | ||||||||||||
| Participants: | |||||||||||||
| Description |
|
For modifiers like $addToSet/$inc/$push/etc if there are invalid options ($fields included) then generate an error.
|
| Comments |
| Comment by Asya Kamsky [ 28/Jun/17 ] | ||||||||||
|
I believe this has been fixed a while back:
|