Details
-
Bug
-
Resolution: Done
-
Major - P3
-
None
-
None
-
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 } } ) );
|