[CXX-1116] result::insert_one/insert_many returns possibly-dangling references for inserted ids, no definition provided for result::insert_many::result() Created: 04/Nov/16 Updated: 15/Nov/16 Resolved: 15/Nov/16 |
|
| Status: | Closed |
| Project: | C++ Driver |
| Component/s: | Implementation |
| Affects Version/s: | None |
| Fix Version/s: | 3.0.3 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Igor Nikolaychuk | Assignee: | J Rassi |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
My code:
I get the "src/bson/bson-iter.c:395 bson_iter_type(): precondition failed: iter->raw" exception on the "auto oId = second.get_oid();" line. |
| Comments |
| Comment by Githook User [ 15/Nov/16 ] |
|
Author: {u'username': u'jrassi', u'name': u'J. Rassi', u'email': u'rassi@10gen.com'}Message: Fixes a bug where the the return value of |
| Comment by Githook User [ 15/Nov/16 ] |
|
Author: {u'username': u'jrassi', u'name': u'J. Rassi', u'email': u'rassi@10gen.com'}Message: Fixes a bug where the return value of |
| Comment by Githook User [ 15/Nov/16 ] |
|
Author: {u'username': u'jrassi', u'name': u'J. Rassi', u'email': u'rassi@10gen.com'}Message: This method was declared as part of the API for this class, but no |
| Comment by J Rassi [ 15/Nov/16 ] |
|
Resolving as fixed for 3.0.3. Thank you for reporting this issue, tvyxen! |
| Comment by Githook User [ 15/Nov/16 ] |
|
Author: {u'username': u'jrassi', u'name': u'J. Rassi', u'email': u'rassi@10gen.com'}Message: Fixes a bug where the the return value of |
| Comment by Githook User [ 15/Nov/16 ] |
|
Author: {u'username': u'jrassi', u'name': u'J. Rassi', u'email': u'rassi@10gen.com'}Message: Fixes a bug where the return value of |
| Comment by Githook User [ 15/Nov/16 ] |
|
Author: {u'username': u'jrassi', u'name': u'J. Rassi', u'email': u'rassi@10gen.com'}Message: This method was declared as part of the API for this class, but no |
| Comment by David Golden [ 04/Nov/16 ] |
|
We've confirmed this bug (and a similar one for insert_one). We'll be releasing a fix soon. |
| Comment by David Golden [ 04/Nov/16 ] |
|
Thanks for the report. We'll try to replicate and let you know what we find. |