[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: SERVER-51399 Validation errors for $expr should report result of evaluation, not result after coercion to a boolean
Branch: master
https://github.com/mongodb/mongo/commit/1a51c07054bd50917ce49952e5259a4fd8a3ee26

Generated at Thu Feb 08 05:25:22 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.