<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:39:53 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-1529] MongoCollectionSettings.AssignIdOnInsert has no effect</title>
                <link>https://jira.mongodb.org/browse/CSHARP-1529</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;According to the MongoDB documentation: &quot;if the mongod receives a document to insert that does not contain an _id field, mongod will add the _id field that holds an ObjectId.&quot; Currently it is not possible to use this feautre of the mongod server, because the above mentioning option is not considered by the driver and ObjectId is always generated on collection insert. &lt;/p&gt;

&lt;p&gt;Note: Legacy versions of the driver still support this feature. &lt;/p&gt;</description>
                <environment></environment>
        <key id="246815">CSHARP-1529</key>
            <summary>MongoCollectionSettings.AssignIdOnInsert has no effect</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</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="kzanev">Konstantin Zanev</reporter>
                        <labels>
                    </labels>
                <created>Tue, 12 Jan 2016 20:55:23 +0000</created>
                <updated>Thu, 21 Apr 2016 20:12:58 +0000</updated>
                            <resolved>Thu, 14 Jan 2016 17:18:23 +0000</resolved>
                                    <version>2.2</version>
                    <version>2.2.1</version>
                                    <fixVersion>2.2.2</fixVersion>
                                    <component>Operations</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="1135130" author="xgen-internal-githook" created="Thu, 14 Jan 2016 17:17:57 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;rstam&apos;, u&apos;name&apos;: u&apos;rstam&apos;, u&apos;email&apos;: u&apos;robert@robertstam.org&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-1529&quot; title=&quot;MongoCollectionSettings.AssignIdOnInsert has no effect&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-1529&quot;&gt;&lt;del&gt;CSHARP-1529&lt;/del&gt;&lt;/a&gt;: New high level API should respect AssignIdOnInsert.&lt;br/&gt;
Branch: v2.2.x&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/commit/b759efa1ba10454f53d1d7f49597e6a220da0bfc&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/commit/b759efa1ba10454f53d1d7f49597e6a220da0bfc&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1135127" author="xgen-internal-githook" created="Thu, 14 Jan 2016 17:16:36 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;rstam&apos;, u&apos;name&apos;: u&apos;rstam&apos;, u&apos;email&apos;: u&apos;robert@robertstam.org&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-1529&quot; title=&quot;MongoCollectionSettings.AssignIdOnInsert has no effect&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-1529&quot;&gt;&lt;del&gt;CSHARP-1529&lt;/del&gt;&lt;/a&gt;: New high level API should respect AssignIdOnInsert.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/commit/f4883504736d5703cdaf5df76a11bfd3573c046b&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/commit/f4883504736d5703cdaf5df76a11bfd3573c046b&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1132886" author="kzanev" created="Tue, 12 Jan 2016 21:11:56 +0000"  >&lt;p&gt;You&apos;re welcome. Thank you for your quick response. &lt;/p&gt;</comment>
                            <comment id="1132877" author="craiggwilson" created="Tue, 12 Jan 2016 21:05:03 +0000"  >&lt;p&gt;Ok, I see the problem. The setting is still there, but it is getting ignored. We&apos;ll mark this to be fixed. Thanks for the report.&lt;/p&gt;

&lt;p&gt;Craig&lt;/p&gt;</comment>
                            <comment id="1132875" author="kzanev" created="Tue, 12 Jan 2016 21:03:05 +0000"  >&lt;p&gt;Thank you Craig. Please refer to the scenario described by this Stackoverflow post: &lt;a href=&quot;http://stackoverflow.com/questions/24723954/mongodb-c-sharp-driver-and-server-generated-objectids&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://stackoverflow.com/questions/24723954/mongodb-c-sharp-driver-and-server-generated-objectids&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This was possible with 1.x, now it isn&apos;t. &lt;/p&gt;</comment>
                            <comment id="1132872" author="kzanev" created="Tue, 12 Jan 2016 20:59:58 +0000"  >&lt;p&gt;Priority Major was not really attetened&lt;img class=&quot;emoticon&quot; src=&quot;https://jira.mongodb.org/images/icons/emoticons/smile.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;, but I can find how to change it.&lt;/p&gt;</comment>
                            <comment id="1132868" author="craiggwilson" created="Tue, 12 Jan 2016 20:58:02 +0000"  >&lt;p&gt;Hi Konstantin,&lt;/p&gt;

&lt;p&gt;The driver, when it sees a document to be inserted without an identifer, will always generate the identifier client-side. This has been true for as long as I can remember from the legacy driver version up until now. Are you indicating that you&apos;d wish the driver would not do this and let the server always generate the identifier? If so, could you please explain why? If not, then please restate your question/request as I have misunderstood.&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Craig&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <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|hreuzr:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="832">C# Sprint 30</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>