[SERVER-39280] Stitch library's upsert fails with "Cannot call setValue on the root object" when matcher predicate is empty Created: 30/Jan/19  Updated: 29/Oct/23  Resolved: 14/Feb/19

Status: Closed
Project: Core Server
Component/s: Querying
Affects Version/s: None
Fix Version/s: 4.1.9

Type: Bug Priority: Major - P3
Reporter: Michael O'Brien Assignee: Jacob Evans
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Query 2019-02-11, Query 2019-02-25
Participants:

 Description   

Adding a test here using {} for the matcher predicate (first argument) should be sufficient to reproduce this.

 

https://github.com/mongodb/mongo/blob/master/src/mongo/embedded/stitch_support/stitch_support_test.cpp#L537-L540



 Comments   
Comment by Githook User [ 14/Feb/19 ]

Author:

{'name': 'Jacob Evans', 'email': 'jacob.evans@10gen.com'}

Message: SERVER-39280 Robustify upsert in Stitch library
Branch: master
https://github.com/mongodb/mongo/commit/d5d9d253306aaaa9bd219d7086ba2067add4887f

Generated at Thu Feb 08 04:51:34 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.