[SERVER-51399] Validation errors for $expr should report result of evaluation, not result after coercion to a boolean Created: 06/Oct/20 Updated: 29/Oct/23 Resolved: 27/Oct/20 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 4.9.0 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Mihai Andrei | Assignee: | Mindaugas Malinauskas |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Backwards Compatibility: | Fully Compatible |
| Sprint: | Query 2020-10-19, Query 2020-11-02 |
| Participants: |
| Description |
|
Currently, document validation errors for $expr will report the 'expressionResult' as the result of the expression after being coerced to bool, when it should report the value returned from expression evaluation. |
| Comments |
| Comment by Githook User [ 27/Oct/20 ] |
|
Author: {'name': 'Mindaugas Malinauskas', 'email': 'mindaugas.malinauskas@mongodb.com'}Message: |