<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:48:22 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-4488] Discriminator is lost when using ObjectUpdateDefinition&lt;T&gt;</title>
                <link>https://jira.mongodb.org/browse/CSHARP-4488</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;h4&gt;&lt;a name=&quot;Summary&quot;&gt;&lt;/a&gt;Summary&lt;/h4&gt;

&lt;p&gt;&lt;em&gt;When updating a document with polymorphic type TDocument and known sub type TSubType using an ObjectUpdateDefinition the type discriminator is lost.&lt;/em&gt;&lt;/p&gt;
&lt;h4&gt;&lt;a name=&quot;Version%3AC%23Driver%3A2.17.1&quot;&gt;&lt;/a&gt;Version: C# Driver: 2.17.1&lt;/h4&gt;
&lt;h4&gt;&lt;a name=&quot;HowtoReproduce&quot;&gt;&lt;/a&gt;How to Reproduce&lt;/h4&gt;
&lt;ul&gt;
	&lt;li&gt;&lt;em&gt;Use&lt;/em&gt; FindOneAndUpdateAsync &lt;em&gt;on a document with polymorphic type using an _ObjectUpdateDefinition&lt;/em&gt;_&lt;/li&gt;
&lt;/ul&gt;


&lt;h4&gt;&lt;a name=&quot;AdditionalBackground&quot;&gt;&lt;/a&gt;Additional Background&lt;/h4&gt;

&lt;p&gt;&lt;em&gt;The Render method of ObjectUpdateDefinition&amp;lt;T&amp;gt; resolved the serializer from the type of the object but ignores the documentSerializer which should be used. Thus, the serializer of the TSubType is picked which does not add the type discriminator.&lt;/em&gt;&lt;/p&gt;</description>
                <environment></environment>
        <key id="2241601">CSHARP-4488</key>
            <summary>Discriminator is lost when using ObjectUpdateDefinition&lt;T&gt;</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="10038" iconUrl="https://jira.mongodb.org/images/icons/subtask.gif" description="">Backlog</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="martin.pluecker@algominds.de">Martin Pl&#252;cker</reporter>
                        <labels>
                            <label>triage</label>
                    </labels>
                <created>Tue, 24 Jan 2023 10:33:15 +0000</created>
                <updated>Mon, 24 Jul 2023 13:20:00 +0000</updated>
                                                                            <component>BSON</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="5586322" author="JIRAUSER1272644" created="Mon, 24 Jul 2023 13:20:00 +0000"  >&lt;p&gt;Is there any update?&lt;/p&gt;</comment>
                            <comment id="5196232" author="JIRAUSER1272644" created="Tue, 14 Feb 2023 09:45:15 +0000"  >&lt;p&gt;Hi, you can find a reproducer and my proposed fix on GitHub:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/algompluecker/mongodb_CSHARP-4488&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;algompluecker/mongodb_CSHARP-4488: Showcase for issue CSHARP-4488 (github.com)&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="5171452" author="dmitry.lukyanov" created="Mon, 6 Feb 2023 18:09:48 +0000"  >&lt;p&gt;Hey &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=martin.pluecker%40algominds.de&quot; class=&quot;user-hover&quot; rel=&quot;martin.pluecker@algominds.de&quot;&gt;martin.pluecker@algominds.de&lt;/a&gt;, can you please provide a small repro for your case?&lt;/p&gt;</comment>
                            <comment id="5135520" author="JIRAUSER1272644" created="Tue, 24 Jan 2023 10:52:39 +0000"  >&lt;p&gt;The issue is also present in the latest driver version 2.18,0&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|i1ake8:</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>