[SERVER-6185] verify assertion on attempt to include a subfield within a non object array element Created: 23/Jun/12  Updated: 28/Oct/15  Resolved: 27/Jul/12

Status: Closed
Project: Core Server
Component/s: Aggregation Framework
Affects Version/s: None
Fix Version/s: 2.2.0-rc1

Type: Bug Priority: Major - P3
Reporter: Aaron Staple Assignee: Matt Dannenberg
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

Observed behavior: Attempt to include the field 'a.b' from document

{ a:[ 1 ] }

triggers a verify assertion.
Expected behavior: The query projection implementation omits the array value in this case and does not assert.

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



 Comments   
Comment by auto [ 27/Jul/12 ]

Author:

{u'date': u'2012-07-23T13:22:43-07:00', u'email': u'dannenberg.matt@gmail.com', u'name': u'Matt Dannenberg'}

Message: create tests for SERVER-6238 and SERVER-6185
Branch: master
https://github.com/mongodb/mongo/commit/1856f0b988842e5aba09f9b61622a625927e6244

Comment by Mathias Stearn [ 23/Jul/12 ]

Please test if this is fixed in master.

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