<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:43:03 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-2622] IdGenerator not working for inserts after using oftype on collection</title>
                <link>https://jira.mongodb.org/browse/CSHARP-2622</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;Id generator not working when using oftype on collection to insert document. See attached example. It will insert Guid.Empty. After commenting out oftype (line 14) it works.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Is there a known workaround?&lt;/p&gt;</description>
                <environment>Windows 10 1809, Azure CosmosDB Emulator 2.1.3&lt;br/&gt;
Reproduced with both dotnet core 2.2 / 3.0 Preview 5</environment>
        <key id="780673">CSHARP-2622</key>
            <summary>IdGenerator not working for inserts after using oftype on collection</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="boppbo">boppbo</reporter>
                        <labels>
                    </labels>
                <created>Wed, 29 May 2019 11:54:30 +0000</created>
                <updated>Fri, 11 Oct 2019 16:45:31 +0000</updated>
                            <resolved>Fri, 11 Oct 2019 16:45:31 +0000</resolved>
                                    <version>2.8.1</version>
                                    <fixVersion>2.9.3</fixVersion>
                                    <component>Serialization</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="2478219" author="xgen-internal-githook" created="Fri, 11 Oct 2019 16:44:39 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: &apos;rstam&apos;, &apos;email&apos;: &apos;robert@robertstam.org&apos;, &apos;name&apos;: &apos;rstam&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-2622&quot; title=&quot;IdGenerator not working for inserts after using oftype on collection&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-2622&quot;&gt;&lt;del&gt;CSHARP-2622&lt;/del&gt;&lt;/a&gt;: IdGenerator not working for inserts after using oftype on collection.&lt;br/&gt;
Branch: v2.9.x&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/commit/f5b9db9bbfd9de95686e4fb619ef948a925c4d76&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/commit/f5b9db9bbfd9de95686e4fb619ef948a925c4d76&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2478213" author="xgen-internal-githook" created="Fri, 11 Oct 2019 16:41:57 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;rstam&apos;, &apos;username&apos;: &apos;rstam&apos;, &apos;email&apos;: &apos;robert@robertstam.org&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-2622&quot; title=&quot;IdGenerator not working for inserts after using oftype on collection&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-2622&quot;&gt;&lt;del&gt;CSHARP-2622&lt;/del&gt;&lt;/a&gt;: IdGenerator not working for inserts after using oftype on collection.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/commit/604c1d38a5e17afe427b6b696f790162c8e8c453&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/commit/604c1d38a5e17afe427b6b696f790162c8e8c453&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="218251" name="Program.cs" size="1606" author="boppbo" created="Wed, 29 May 2019 11:54:29 +0000"/>
                    </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|hv0plj:</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>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>