<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:44: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-3100] Updating non-null dictionary field with null doesn`t work</title>
                <link>https://jira.mongodb.org/browse/CSHARP-3100</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;I have such field in Document&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;BsonDictionaryOptions(DictionaryRepresentation.ArrayOfArrays)&amp;#93;&lt;/span&gt;&lt;br/&gt;
 public Dictionary&amp;lt;LinkAt&amp;lt;AdvertType&amp;gt;, decimal&amp;gt; AdvertisementTypeAndPrice { get; set; }&lt;/p&gt;

&lt;p&gt;LinkAt is Document too&lt;/p&gt;

&lt;p&gt;now this field is not null, exactly it has 3 keyvalue pairs&lt;/p&gt;

&lt;p&gt;but when i try to do this code&lt;br/&gt;
acc.AudienceGroupPercentage = null;&lt;br/&gt;
 acc.Save();&lt;/p&gt;

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

&lt;p&gt;it doesnt saves. No exeption, but if i am trying to get this object another one time, i get the start value with 3 keyvalue pairs.&lt;/p&gt;

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

&lt;p&gt;Found this issue in google, but it is not related to C# and mongo driver exactly, but may be helpfull&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/mongodb-odm/issues/1671&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/doctrine/mongodb-odm/issues/1671&lt;/a&gt;&lt;/p&gt;</description>
                <environment>.Net Core 3.1</environment>
        <key id="1346003">CSHARP-3100</key>
            <summary>Updating non-null dictionary field with null doesn`t work</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="13203">Gone away</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="a.pchelkin32@gmail.com">Aleksandr N/A</reporter>
                        <labels>
                    </labels>
                <created>Sun, 10 May 2020 22:56:49 +0000</created>
                <updated>Fri, 27 Oct 2023 19:56:08 +0000</updated>
                            <resolved>Mon, 15 Jun 2020 14:49:59 +0000</resolved>
                                    <version>2.10.4</version>
                                                    <component>Serialization</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="3208068" author="esha.bhargava" created="Mon, 15 Jun 2020 14:49:48 +0000"  >&lt;p&gt;Since we haven&apos;t heard back from you, we are closing this ticket. If you want to discuss this further, please post on the &lt;a href=&quot;https://community.mongodb.com/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;MongoDB Community Forums&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="3094774" author="jeff.yemin" created="Tue, 19 May 2020 13:30:34 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=a.pchelkin32%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;a.pchelkin32@gmail.com&quot;&gt;a.pchelkin32@gmail.com&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It doesn&apos;t have to be your production code.  We&apos;re just asking for a small test case that demonstrates the issue.&lt;/p&gt;</comment>
                            <comment id="3094756" author="JIRAUSER1251116" created="Tue, 19 May 2020 13:22:20 +0000"  >&lt;p&gt;Unfortunately i can`t because it is commercial development and i will be punished for such an action.&lt;/p&gt;</comment>
                            <comment id="3092662" author="esha.bhargava" created="Mon, 18 May 2020 15:20:53 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=a.pchelkin32%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;a.pchelkin32@gmail.com&quot;&gt;a.pchelkin32@gmail.com&lt;/a&gt; Can you provide us with a full working example?&lt;/p&gt;</comment>
                            <comment id="3077268" author="JIRAUSER1251116" created="Sun, 10 May 2020 23:01:08 +0000"  >&lt;p&gt;&lt;font color=&quot;#FF0000&quot;&gt;&amp;gt;acc.AudienceGroupPercentage = null; is not correct&lt;/font&gt;&lt;br/&gt;
&lt;font color=&quot;#FF0000&quot;&gt; &amp;gt;acc.AdvertisementTypeAndPrice = null; of course&lt;/font&gt;&lt;/p&gt;

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

&lt;p&gt;didnt find where to change the body&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|hx7uj3:</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>