<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:42: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-2560] The BsonDocument doesn&apos;t equal to itself when has double.NaN value in it.</title>
                <link>https://jira.mongodb.org/browse/CSHARP-2560</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;This piece of code print False:&lt;/p&gt;

&lt;p&gt;var bd = new BsonDouble(double.NaN);&lt;br/&gt;
 var be = new BsonElement(&quot;test&quot;, bd);&lt;br/&gt;
 var document = new BsonDocument(be);&lt;/p&gt;

&lt;p&gt; Console.WriteLine(document.Equals(document));&lt;/p&gt;

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

&lt;p&gt;//This cause the BsonDocument can&apos;t be removed from a list.&lt;/p&gt;

&lt;p&gt;var list = new List&amp;lt;BsonDocument&amp;gt;();&lt;/p&gt;

&lt;p&gt;list.Add(document);&lt;br/&gt;
 list.Remove(document); &#160;//Nothing happened here.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</description>
                <environment>C# MongoDB Driver 2.8.0&lt;br/&gt;
.Net Framework 4.6.1</environment>
        <key id="722157">CSHARP-2560</key>
            <summary>The BsonDocument doesn&apos;t equal to itself when has double.NaN value in it.</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="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="tom3000">Tom</reporter>
                        <labels>
                    </labels>
                <created>Mon, 25 Mar 2019 07:46:22 +0000</created>
                <updated>Thu, 31 Mar 2022 00:21:35 +0000</updated>
                                            <version>2.8.0</version>
                                                    <component>BSON</component>
                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="2190988" author="ian@10gen.com" created="Mon, 25 Mar 2019 19:26:11 +0000"  >&lt;p&gt;hey &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=tom3000&quot; class=&quot;user-hover&quot; rel=&quot;tom3000&quot;&gt;tom3000&lt;/a&gt; thanks for the report.  the definition of double.NaN is that two NaN values are not equal to each other, so we&apos;ll need to think about whether two BsonDocuments containing NaNs should be equal or not.&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|huhaz3:</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>