<!-- 
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-2557] Change in behaviour of parsing nested .Any predicates</title>
                <link>https://jira.mongodb.org/browse/CSHARP-2557</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;Hello&lt;/p&gt;

&lt;p&gt;I have 2 classes:&lt;/p&gt;

&lt;p&gt;public class Donation&#160; &#160;&#160;&lt;/p&gt;

{&#160; &#160; &#160; &#160;

&#160; &#160; &#160; &#160; public ObjectId Id \{ get; set; }&lt;br/&gt;
&#160; &#160; &#160; &#160; public ICollection&amp;lt;Item&amp;gt; Items { get; set; }&lt;br/&gt;
&lt;br/&gt;
}&lt;br/&gt;
&lt;br/&gt;
public class Item&#160;&#160; &#160;&lt;br/&gt;
{&#160; &#160; &#160; &#160;

&#160; &#160; &#160; &#160; public ObjectId Id { get; set; }

&lt;p&gt;&#160; &#160; &#160; &#160; public ICollection&amp;lt;ObjectId&amp;gt; ParentIds { get; set; }&lt;/p&gt;

&lt;p&gt;}&lt;/p&gt;


&lt;p&gt;Example Data:&lt;/p&gt;

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

&lt;p&gt;&#160; &#160; &#160;&quot;_id&quot; : ObjectId(&quot;553682b4ecab640ee4ba35e5&quot;),&#160; &#160;&#160;&#160; &#160;&lt;/p&gt;

&lt;p&gt;&#160; &#160; &#160;&quot;Items&quot; : [&#160;&#160; &#160; &#160; &#160;&lt;/p&gt;

&lt;p&gt;&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;&lt;/p&gt;
{&#160; &#160; &#160;&quot;_id&quot; : ObjectId(&quot;553682b4ecab640ee4ba35e6&quot;),&#160;

&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &quot;ParentIds&quot; : [&#160;&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;

&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; ObjectId(&quot;55368285ecab640eb8d6976f&quot;),

&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; ObjectId(&quot;55368256ecab640eb8d6976e&quot;),&#160;

&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; ObjectId(&quot;55016c84b9e76f04a8821be5&quot;)&#160; &#160; &#160; &#160; &#160; &#160;

&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; ]&#160; &#160; &#160; &#160;

&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; }
&lt;p&gt;&#160; &#160; ]}&lt;/p&gt;

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

&lt;p&gt;I have the following c# predicate:&lt;br/&gt;
find(x =&amp;gt; x.Items.Any(d =&amp;gt; d.ParentIds.Any(p =&amp;gt; p == ObjectId(&quot;55368256ecab640eb8d6976e&quot;))))&lt;/p&gt;

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

&lt;p&gt;V2.7.3 behaviour emits:&lt;/p&gt;

&lt;p&gt;.find({ &quot;Items.ParentIds&quot; : ObjectId(&quot;55368256ecab640eb8d6976e&quot;) })&lt;/p&gt;

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

&lt;p&gt;V.2.8.0 behaviour emits:&lt;/p&gt;

&lt;p&gt;.find({ &quot;Items.ParentIds&quot; : { &quot;$elemMatch&quot; : &lt;/p&gt;
{ &quot;&quot; : ObjectId(&quot;55368256ecab640eb8d6976e&quot;) }
&lt;p&gt; } })&lt;/p&gt;

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

&lt;p&gt;This breaks our production build, working happily for several years now....&lt;/p&gt;

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

&lt;p&gt;Thanks&lt;/p&gt;

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

&lt;p&gt;&#160;&lt;/p&gt;</description>
                <environment></environment>
        <key id="720467">CSHARP-2557</key>
            <summary>Change in behaviour of parsing nested .Any predicates</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="1" iconUrl="https://jira.mongodb.org/images/icons/priorities/blocker.svg">Blocker - P1</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="13201">Fixed</resolution>
                                        <assignee username="dmitry.lukyanov@mongodb.com">Dmitry Lukyanov</assignee>
                                    <reporter username="kevin.fairs@neighbourly.com">Kevin Fairs</reporter>
                        <labels>
                    </labels>
                <created>Thu, 21 Mar 2019 14:08:12 +0000</created>
                <updated>Sat, 28 Oct 2023 11:48:47 +0000</updated>
                            <resolved>Mon, 8 Apr 2019 07:59:04 +0000</resolved>
                                    <version>2.8.0</version>
                                    <fixVersion>2.8.1</fixVersion>
                                    <component>Linq</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="2204173" author="xgen-internal-githook" created="Sat, 6 Apr 2019 00:21:40 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;email&apos;: &apos;dmitry_lukyanov@epam.com&apos;, &apos;name&apos;: &apos;Dmitry Lukyanov&apos;, &apos;username&apos;: &apos;dmitry-lukyanov&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-2557&quot; title=&quot;Change in behaviour of parsing nested .Any predicates&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-2557&quot;&gt;&lt;del&gt;CSHARP-2557&lt;/del&gt;&lt;/a&gt;: Fix bug in &apos;$elemMatch&apos; generating if expression predicate contains `DocumentsExpression`s as an operand.&lt;br/&gt;
Branch: v2.8.x&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/commit/327b17c5d498b8a9e825f1ca9bc7c442a6a61179&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/commit/327b17c5d498b8a9e825f1ca9bc7c442a6a61179&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2204144" author="xgen-internal-githook" created="Fri, 5 Apr 2019 23:06:23 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Dmitry Lukyanov&apos;, &apos;username&apos;: &apos;dmitry-lukyanov&apos;, &apos;email&apos;: &apos;dmitry_lukyanov@epam.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-2557&quot; title=&quot;Change in behaviour of parsing nested .Any predicates&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-2557&quot;&gt;&lt;del&gt;CSHARP-2557&lt;/del&gt;&lt;/a&gt;: Fix bug in &apos;$elemMatch&apos; generating if expression predicate contains `DocumentsExpression`s as an operand.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/commit/0cb2c311b846382d6b7ffd6082c361b7220cf0fc&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/commit/0cb2c311b846382d6b7ffd6082c361b7220cf0fc&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="729284">CSHARP-2574</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                        <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10012"><![CDATA[Major Change]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <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|hugdxz:</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>