[JAVA-1564] getCollectionNames returning null elements Created: 18/Nov/14  Updated: 01/Apr/16  Resolved: 10/Dec/14

Status: Closed
Project: Java Driver
Component/s: Async, Query Operations
Affects Version/s: None
Fix Version/s: 3.0.0

Type: Bug Priority: Major - P3
Reporter: Nick Scavelli Assignee: Ross Lawley
Resolution: Done Votes: 0
Labels: rc
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Calling getCollectionNames is returning null elements in the list.



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

Author:

{u'username': u'rozza', u'name': u'Ross Lawley', u'email': u'ross.lawley@gmail.com'}

Message: Added regression check for null items occuring in the collection names

JAVA-1564
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/44c7a2d5563b682dcaaeb7e2c5081c880a6e3705

Comment by Githook User [ 30/Jan/15 ]

Author:

{u'username': u'rozza', u'name': u'Ross Lawley', u'email': u'ross.lawley@gmail.com'}

Message: Added a smoke test for the async driver

Refs: JAVA-1564 JAVA-1565
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/845859a7bc93308d24be8272f9cf01682b4ff2c7

Comment by Nick Scavelli [ 10/Dec/14 ]

Yes, thanks.

Comment by Ross Lawley [ 10/Dec/14 ]

This looks to have been resolved in the recent refactorings.

I also added a general smoke test for the async driver to help catch regressions.

Comment by Githook User [ 10/Dec/14 ]

Author:

{u'username': u'rozza', u'name': u'Ross Lawley', u'email': u'ross.lawley@gmail.com'}

Message: Added regression check for null items occuring in the collection names

JAVA-1564
Branch: 3.0.x
https://github.com/mongodb/mongo-java-driver/commit/44c7a2d5563b682dcaaeb7e2c5081c880a6e3705

Comment by Githook User [ 10/Dec/14 ]

Author:

{u'username': u'rozza', u'name': u'Ross Lawley', u'email': u'ross.lawley@gmail.com'}

Message: Added a smoke test for the async driver

Refs: JAVA-1564 JAVA-1565
Branch: 3.0.x
https://github.com/mongodb/mongo-java-driver/commit/845859a7bc93308d24be8272f9cf01682b4ff2c7

Comment by Jeffrey Yemin [ 25/Nov/14 ]

I see the bug. com.mongodb.operation.FindOperationHelper#queryResultToList ignores mapped elements if they are null, while com.mongodb.operation.FindOperationHelper.QueryResultToListCallback does not

Comment by Ross Lawley [ 20/Nov/14 ]

Thanks nscavell will review post JAVA-1554

Generated at Thu Feb 08 08:54:56 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.