[SERVER-73125] Builtin variable $$NOW is not available in document validation Created: 20/Jan/23 Updated: 29/Oct/23 Resolved: 27/Feb/23 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | 5.0.8 |
| Fix Version/s: | 7.0.0-rc0, 6.3.0-rc1, 5.0.16, 6.0.6 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Alex Blex | Assignee: | Naama Bareket |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Assigned Teams: |
Query Execution
|
||||
| Backwards Compatibility: | Fully Compatible | ||||
| Operating System: | ALL | ||||
| Backport Requested: |
v6.3, v6.0, v5.0
|
||||
| Steps To Reproduce: |
|
||||
| Sprint: | QE 2023-02-20, QE 2023-03-06 | ||||
| Participants: | |||||
| Description |
|
Using validation for a collection with following document validator:
results with
An attempt to insert a document with any value in `ts` field fail validation with following error:
|
| Comments |
| Comment by Githook User [ 15/Mar/23 ] |
|
Author: {'name': 'Naama Bareket', 'email': 'naama.bareket@mongodb.com', 'username': 'naama-bareket'}Message: (cherry-picked from 7820a2ce672fffb91b9f03bd72c1cf827efc391e) |
| Comment by Githook User [ 28/Feb/23 ] |
|
Author: {'name': 'Naama Bareket', 'email': 'naama.bareket@mongodb.com', 'username': 'naama-bareket'}Message: |
| Comment by Githook User [ 28/Feb/23 ] |
|
Author: {'name': 'Naama Bareket', 'email': 'naama.bareket@mongodb.com', 'username': 'naama-bareket'}Message: |
| Comment by Githook User [ 25/Feb/23 ] |
|
Author: {'name': 'Naama Bareket', 'email': 'naama.bareket@mongodb.com', 'username': 'naama-bareket'}Message: |