Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-15222

BsonTemplateEvaluator::_evalElem one builds a single level

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 2.7.6
    • Fix Version/s: 2.7.8
    • Component/s: Shell
    • Labels:

      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" } } }

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              greg_10gen Greg Studer
              Reporter:
              alvin Alvin Richards
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: