<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 09:00:37 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>[JAVA-3859] aggregation with lookup fails with 2 non-encrypted collections if CSFLE is enabled</title>
                <link>https://jira.mongodb.org/browse/JAVA-3859</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;An aggregation pipeline $lookup fails even if the 2 involved collections are unencrypted. The underlying connection has csfle enabled since the same connection is used to work on the collections with the encrypted fields. &lt;br/&gt;
Exception received: &lt;br/&gt;
Exception in encryption library: Command failed with error 51204 (Location51204): &apos;Pipeline over an encrypted collection cannot reference additional collections.&apos; on server localhost:27020. The full response is &lt;/p&gt;
{&quot;ok&quot;: 0.0, &quot;errmsg&quot;: &quot;Pipeline over an encrypted collection cannot reference additional collections.&quot;, &quot;code&quot;: 51204, &quot;codeName&quot;: &quot;Location51204&quot;}

&lt;p&gt;code snippet:&lt;br/&gt;
Bson lookup = new Document(&quot;$lookup&quot;,&lt;br/&gt;
                    new Document(&quot;from&quot;, &quot;samplecollection1&quot;)&lt;br/&gt;
                            .append(&quot;localField&quot;, &quot;field1&quot;)&lt;br/&gt;
                            .append(&quot;foreignField&quot;, &quot;field2&quot;)&lt;br/&gt;
                            .append(&quot;as&quot;, &quot;samplecollection1&quot;));&lt;/p&gt;

&lt;p&gt; List&amp;lt;Bson&amp;gt; filters = new ArrayList&amp;lt;&amp;gt;();&lt;br/&gt;
 filters.add(lookup);&lt;/p&gt;

&lt;p&gt; MongoCollection&amp;lt;Document&amp;gt; collection = encryptedClient.getDatabase(recordsDb).getCollection(&quot;samplecollection2&quot;);&lt;br/&gt;
 AggregateIterable&amp;lt;Document&amp;gt; it = collection.aggregate(filters);&lt;/p&gt;

&lt;p&gt; for (Document row : it) &lt;/p&gt;
{
     System.out.println(row.toJson());
 }

&lt;p&gt;Note: the aggregation works fine if the connection is created without csfle options.&lt;/p&gt;</description>
                <environment></environment>
        <key id="1515314">JAVA-3859</key>
            <summary>aggregation with lookup fails with 2 non-encrypted collections if CSFLE is enabled</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</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="9">Done</resolution>
                                        <assignee username="jeff.yemin@mongodb.com">Jeffrey Yemin</assignee>
                                    <reporter username="anu.madan@idemia.com">Anu Madan</reporter>
                        <labels>
                    </labels>
                <created>Thu, 15 Oct 2020 11:31:38 +0000</created>
                <updated>Wed, 6 Oct 2021 17:42:01 +0000</updated>
                            <resolved>Tue, 20 Oct 2020 02:49:24 +0000</resolved>
                                    <version>3.12.7</version>
                    <version>4.1.1</version>
                                                    <component>Client Side Encryption</component>
                                        <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="4106658" author="JIRAUSER1262733" created="Wed, 6 Oct 2021 17:42:01 +0000"  >&lt;p&gt;Thank you. I can access the ticket now.&lt;/p&gt;</comment>
                            <comment id="4106105" author="jeff.yemin" created="Wed, 6 Oct 2021 16:35:36 +0000"  >&lt;p&gt;There was an oversight on an automation configuration update but that change has been reverted and &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-50092&quot; title=&quot;[FLE] with encryption on collection and $lookup with two non-encrypted collections fails&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-50092&quot;&gt;SERVER-50092&lt;/a&gt; is now accessible again. We apologize for the confusion.&#160;&#160;&lt;/p&gt;</comment>
                            <comment id="4100316" author="JIRAUSER1262733" created="Mon, 4 Oct 2021 18:07:51 +0000"  >&lt;p&gt;Hi,&#160;&lt;span class=&quot;nobr&quot;&gt;&lt;a href=&quot;mailto:jeff.yemin@mongodb.com&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;jeff.yemin@mongodb.com&lt;sup&gt;&lt;img class=&quot;rendericon&quot; src=&quot;https://jira.mongodb.org/images/icons/mail_small.gif&quot; height=&quot;12&quot; width=&quot;13&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/sup&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;

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

&lt;p&gt;Please, I&apos;m facing the same issue even when I&apos;m not referring to the encrypted collection. Is that being fixed by &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-50092&quot; title=&quot;[FLE] with encryption on collection and $lookup with two non-encrypted collections fails&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-50092&quot;&gt;SERVER-50092&lt;/a&gt;? I&apos;m not able to access this ticket.&lt;/p&gt;

&lt;p&gt;Thank you very much.&lt;/p&gt;</comment>
                            <comment id="3447488" author="jeff.yemin" created="Thu, 15 Oct 2020 22:22:53 +0000"  >&lt;p&gt;Added link to the relevant server ticket: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-50092&quot; title=&quot;[FLE] with encryption on collection and $lookup with two non-encrypted collections fails&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-50092&quot;&gt;SERVER-50092&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3447399" author="jeff.yemin" created="Thu, 15 Oct 2020 21:27:35 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=anu.madan%40idemia.com&quot; class=&quot;user-hover&quot; rel=&quot;anu.madan@idemia.com&quot;&gt;anu.madan@idemia.com&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;Yes, I believe that is the expected behavior. Restrictions on &lt;tt&gt;$lookup&lt;/tt&gt; usage with CSFLE are documented &lt;a href=&quot;https://docs.mongodb.com/manual/reference/security-client-side-query-aggregation-support/#csfle-lookup-graphlookup-behavior&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;here&lt;/a&gt;. &lt;/p&gt;

&lt;p&gt;I will inform our product management team of your interest in this.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="1427547">SERVER-50092</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <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|hxz3m7:</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>