[CXX-449] Aggregate cursor with no results against MongoDB 2.2/2.4 responds true to more() Created: 18/Dec/14  Updated: 23/Jan/15  Resolved: 07/Jan/15

Status: Closed
Project: C++ Driver
Component/s: Implementation
Affects Version/s: legacy-1.0.0-rc2
Fix Version/s: legacy-1.0.0-rc4

Type: Bug Priority: Major - P3
Reporter: Tyler Brock Assignee: Tyler Brock
Resolution: Done Votes: 0
Labels: legacy-cxx
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to CXX-441 Support cursor in listCollections com... Closed

 Description   

This fails on the current driver running against MongoDB < 2.6

    // Start with empty collection
    TEST_F(DBClientTest, AggregateNoResults) {
        std::auto_ptr<DBClientCursor> cursor = c.aggregate(TEST_NS, BSONObj());
        ASSERT_TRUE(cursor.get());
        ASSERT_FALSE(cursor->more());
    }



 Comments   
Comment by Githook User [ 07/Jan/15 ]

Author:

{u'username': u'TylerBrock', u'name': u'Tyler Brock', u'email': u'tyler.brock@gmail.com'}

Message: CXX-449 add test for empty cursor shim on <2.6
Branch: legacy
https://github.com/mongodb/mongo-cxx-driver/commit/46824e063c897acba234472c0db5b09e9635d3f9

Comment by Tyler Brock [ 18/Dec/14 ]

This will be fixed by changes in CXX-441 but we should add this as an additional standalone/dbclienttest to be sure as part of this ticket.

Generated at Wed Feb 07 21:59:15 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.