[SERVER-6143] verify assertion on attempt to perform date extraction from missing or null value Created: 20/Jun/12  Updated: 11/Jul/16  Resolved: 29/Jun/12

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

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   

Test:

c = db.c;
c.drop();
 
c.save( {} );
c.save( { a:null } );
printjson( c.aggregate( { $project:{ z:{ $dayOfMonth:[ '$a' ] } } } ) );

Wed Jun 20 12:56:48 [conn12]  test.c Assertion failure false src/mongo/db/pipeline/value.cpp 621

Observed behavior: A verify assertion occurs when attempting to extract a date field from a missing or null value.
Expected behavior: If an exception is to be triggered in this case it should be a non verify assertion.



 Comments   
Comment by auto [ 03/Jul/12 ]

Author:

{u'date': u'2012-06-29T12:52:48-07:00', u'name': u'Mathias Stearn', u'email': u'mathias@10gen.com'}

Message: Automatically run all tests in jstests/aggregation/bugs

Also fixes an issue with the test for SERVER-6143 which wasn't being run
Branch: master
https://github.com/mongodb/mongo/commit/e723a1643a6a08188417bacb53547b770705fbcf

Comment by auto [ 29/Jun/12 ]

Author:

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

Message: SERVER-6143 change verify to uassert on bad aggro date value
Branch: master
https://github.com/mongodb/mongo/commit/9bfb82ea042d1a21d7058f44367caa9688cb4331

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