<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:35:47 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[CSHARP-92] BsonCollection.InsertBatch(new[] { new BsonDocument{ {_id:-1} } }) fails</title>
                <link>https://jira.mongodb.org/browse/CSHARP-92</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;calling&lt;/p&gt;

&lt;p&gt;var data = new[] { &lt;br/&gt;
  new BsonDocument() { {_id:-1} } &lt;br/&gt;
};&lt;br/&gt;
BsonCollection col = ....&lt;br/&gt;
var safe = SafeMode.WaitForReplications(2, TimeSpan.FromSeconds(2));&lt;br/&gt;
col.InsertBatch(data, safe);&lt;/p&gt;

&lt;p&gt;will throw:&lt;br/&gt;
 MongoDB.Bson.BsonSerializationException : No idGenerator found for type: System.Int32&lt;/p&gt;

&lt;p&gt;This used to work on version 0.5 with my own object CRUD test.&lt;/p&gt;

</description>
                <environment>windows 7, x64. vs2008sp1. .net 3.5</environment>
        <key id="13625">CSHARP-92</key>
            <summary>BsonCollection.InsertBatch(new[] { new BsonDocument{ {_id:-1} } }) fails</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="9">Done</resolution>
                                        <assignee username="robert@mongodb.com">Robert Stam</assignee>
                                    <reporter username="hnguye8">huy nguyen</reporter>
                        <labels>
                    </labels>
                <created>Thu, 4 Nov 2010 21:21:17 +0000</created>
                <updated>Thu, 2 Apr 2015 18:28:27 +0000</updated>
                            <resolved>Fri, 5 Nov 2010 06:16:59 +0000</resolved>
                                    <version>0.7</version>
                                    <fixVersion>0.9</fixVersion>
                                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="20047" author="rstam" created="Fri, 5 Nov 2010 06:16:59 +0000"  >&lt;p&gt;If there is no IIdGenerator for a particular type the driver will just leave the Id value alone (so it&apos;s up to the client code to generate unique Ids).&lt;/p&gt;</comment>
                            <comment id="20045" author="rstam" created="Fri, 5 Nov 2010 03:13:04 +0000"  >&lt;p&gt;The support for IdGenerators is new in 0.7. I will have to change it to make it optional. You should not be getting the error your are getting.&lt;/p&gt;

&lt;p&gt;Of course, if you are assigning your own _ids you will have to make sure that your values for _id are unique or you&apos;ll get a duplicate key errors from the database.&lt;/p&gt;</comment>
                            <comment id="20039" author="hnguye8" created="Thu, 4 Nov 2010 23:36:16 +0000"  >&lt;p&gt;Additional note: I am using 4 nodes (total) replica set. Server version is 1.6.3. Of the 4 nodes, 2 are data nodes, 2 are arbiters.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                        <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10012"><![CDATA[Major Change]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrh9qf:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>14376</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>