[CSHARP-1986] And with zero clauses renders as { $and : [] } Created: 19/May/17 Updated: 27/Oct/23 Resolved: 30/May/17 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | Operations |
| Affects Version/s: | 2.4.3 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Critical - P2 |
| Reporter: | Juan Santander | Assignee: | Robert Stam |
| Resolution: | Works as Designed | Votes: | 0 |
| Labels: | Bug | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Description |
|
Related to
Results in the following filter being rendered: { "$and" : [] }Instead of an empty filter. |
| Comments |
| Comment by Robert Stam [ 30/May/17 ] | |||
|
This is by design. See | |||
| Comment by Juan Santander [ 22/May/17 ] | |||
|
Upon further verification, the issue happens when an empty list is passed to the the And filter, as follows:
This results in the wrong filter being rendered:
Passing two empty filters renders correctly. |