[SERVER-15222] BsonTemplateEvaluator::_evalElem one builds a single level Created: 11/Sep/14  Updated: 19/Jun/15  Resolved: 08/Oct/14

Status: Closed
Project: Core Server
Component/s: Shell
Affects Version/s: 2.7.6
Fix Version/s: 2.7.8

Type: Improvement Priority: Major - P3
Reporter: Alvin Richards (Inactive) Assignee: Greg Studer
Resolution: Done Votes: 0
Labels: 28qa, pull-request
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Duplicate
Participants:

 Description   

Problem:

The method BsonTemplateEvaluator::_evalElem only build a single level of template expansion, so it will expand the following correct

Input

{ _id : { "#VARIABLE" : "x" } }

Output

{ _id: 194 }

However at deeper levels, it does not expand correctly

Input

{ $set : { y :  { "#VARIABLE" : "x" } } }

Output

{ $set: { y: { #VARIABLE: "x" } } }

 



 Comments   
Comment by Githook User [ 08/Oct/14 ]

Author:

{u'username': u'alvinr', u'name': u'Alvin Richards', u'email': u'alvin@10gen.com'}

Message: SERVER-15222 BsonTemplateEvaluator::_evalElem one builds a single level

Closes #815

Signed-off-by: Benety Goh <benety@mongodb.com>
Branch: master
https://github.com/mongodb/mongo/commit/157d2fd21277e0fc3f0259d08da5e15541a1ffb2

Comment by Alvin Richards (Inactive) [ 05/Oct/14 ]

greg_10gen Will you have the time to look at this next week?

Generated at Thu Feb 08 03:37:21 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.