<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:36:41 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-394] Possible bug found via unit tests</title>
                <link>https://jira.mongodb.org/browse/CSHARP-394</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;In running the unit tests under CSharpDriver-2010, I encountered 1 failure at DriverOnlineTests =&amp;gt; Linq =&amp;gt; SelectQueryTests =&amp;gt; TestWhereTripleAnd.&lt;/p&gt;

&lt;p&gt;The test involves the query provided below. It fails asserting that the result count is 2, because the result count of this query for me is 0. The issue seems to be with the redundancy of using $gte on the same field. If I remove either &quot;c.X &amp;gt;= 0&quot; or &quot;c.X &amp;gt;= 1&quot;, the query properly returns 2 results. Additionally, if I add &quot;!c.B&quot;, the query properly returns 2 results, and so there does not seem to be an issue with Triple And in and of itself.&lt;/p&gt;

&lt;p&gt;                        var query = from c in _collection.AsQueryable&amp;lt;C&amp;gt;()&lt;br/&gt;
                        where c.X &amp;gt;= 0 &amp;amp;&amp;amp; c.X &amp;gt;= 1 &amp;amp;&amp;amp; c.Y == 11&lt;br/&gt;
                        select c;&lt;/p&gt;

&lt;p&gt;I tried searching for this. My apologies if this issue is redundant or already solved.&lt;/p&gt;
</description>
                <environment>Mono 2.10.8, Mongo 1.8.2</environment>
        <key id="30810">CSHARP-394</key>
            <summary>Possible bug found via unit tests</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="rposky">Robert Poskevich</reporter>
                        <labels>
                            <label>driver</label>
                            <label>query</label>
                    </labels>
                <created>Thu, 16 Feb 2012 17:21:52 +0000</created>
                <updated>Thu, 2 Apr 2015 18:28:23 +0000</updated>
                            <resolved>Sat, 18 Feb 2012 15:57:27 +0000</resolved>
                                    <version>1.4</version>
                                    <fixVersion>1.4</fixVersion>
                                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="89963" author="rstam" created="Sun, 19 Feb 2012 23:32:00 +0000"  >&lt;p&gt;I don&apos;t believe the TestBitmap failure can be explained by line endings. It seems to be something weird (possibly even a bug) in how Mono save a Bitmap to a binary stream.&lt;/p&gt;</comment>
                            <comment id="89956" author="rposky" created="Sun, 19 Feb 2012 22:07:54 +0000"  >&lt;p&gt;Can the discrepancy in line endings account for the failure I am seeing at the following line in the afore-mentioned unit test?&lt;/p&gt;

&lt;p&gt;Assert.IsTrue(GetBytes(bitmap).SequenceEqual(GetBytes(r.B)));&lt;/p&gt;

&lt;p&gt;I did notice a few unit tests failed because of this line ending issue. The message of the thrown Exception did not match the &quot;Expected Message.&quot; This was no big deal for me and was easily remedied. I&apos;m not sure that this is the issue I reported though.&lt;/p&gt;</comment>
                            <comment id="89811" author="rstam" created="Sat, 18 Feb 2012 15:57:16 +0000"  >&lt;p&gt;The unit tests were failing only because Mac OS X has a different line ending convention. I&apos;ve modified the unit tests to only check the first line of the error message.&lt;/p&gt;

&lt;p&gt;I&apos;m closing this issue. See &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-398&quot; title=&quot;Can&amp;#39;t Map Base Class Field As Id&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-398&quot;&gt;&lt;del&gt;CSHARP-398&lt;/del&gt;&lt;/a&gt; which was created for the TestBitmap unit test (which passes on Windows both in Mono and .NET).&lt;/p&gt;</comment>
                            <comment id="89203" author="rposky" created="Thu, 16 Feb 2012 20:52:19 +0000"  >&lt;p&gt;In that case, then, there is one other issue. A unit test also fails at DriverOnlineTests =&amp;gt; Jira =&amp;gt; CSharp355Tests =&amp;gt; TestBitmap.&lt;/p&gt;

&lt;p&gt;It fails on the last line (copied below), where all values in the byte arrays are identical up unto the last couple of indexes (specifically, there are two 0 values in &quot;r.B&quot; which are 255 in &quot;bitmap&quot;).&lt;/p&gt;

&lt;p&gt;     Assert.IsTrue(GetBytes(bitmap).SequenceEqual(GetBytes(r.B)));&lt;/p&gt;

&lt;p&gt;Thanks and happy hunting. &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;&lt;/p&gt;</comment>
                            <comment id="89198" author="rstam" created="Thu, 16 Feb 2012 20:31:53 +0000"  >&lt;p&gt;Thanks for reporting this. This is a very recently added unit test and I hadn&apos;t run it on Mono yet. Every now and then Mono does something weird different from .NET and I have to find a workaround.&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|hrh7zj:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>14093</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>