[SERVER-6433] .update() with incorrect arguments results in assertion failue Created: 12/Jul/12 Updated: 04/Sep/14 Resolved: 04/Sep/14 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Shell |
| Affects Version/s: | 2.1.0 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Doug Hudson | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
> db.serverBuildInfo() |
||
| Operating System: | ALL |
| Participants: |
| Description |
|
Accidentally issued wrong arguments to update(). There is no explicit check for arguments before the assertion fails. > db.boundaries.update({$unset:{num_shapes:1}}) Thu Jul 12 16:06:16 uncaught exception: assert failed : need an object |