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

verify assertion when parent of an inclusion field is an operator expression

    XMLWordPrintableJSON

Details

    • ALL

    Description

      ExpressionObject::includePath expects that an existing expression encountered while traversing the supplied field path is an ExpressionObject. But this will not be the case if an earlier expression on the field was a non object expression (it could be an operator expression).

      Current behavior: verify assertion in the case described above, and in the test
      Expected behavior: uassert?

      c = db.c;
      c.drop();
       
      c.save( {} );
       
      printjson( c.aggregate( { $project:{ 'x':{ $add:[ 1 ] }, 'x.b':1 } } ) );

      Attachments

        Activity

          People

            mathias@mongodb.com Mathias Stearn
            aaron Aaron Staple
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: