<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 09:08:06 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>[MONGOCRYPT-159] Define expected behavior when listCollections returns no collection info document</title>
                <link>https://jira.mongodb.org/browse/MONGOCRYPT-159</link>
                <project id="17481" key="MONGOCRYPT">Libmongocrypt</project>
                    <description>&lt;p&gt;When the state is MONGOCRYPT_CTX_NEED_MONGO_COLLINFO a driver is supposed to run a listCollections command with the given filter and feed the resulting collection info document back to libmongocrypt. &lt;/p&gt;

&lt;p&gt;What is a driver supposed to do when no document is returned? This would happen when the collection is dropped for example. Should the driver:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;feed in an empty BSON document?&lt;/li&gt;
	&lt;li&gt;skip the call mongocrypt_ctx_mongo_feed altogether?&lt;/li&gt;
	&lt;li&gt;raise an error?&lt;/li&gt;
	&lt;li&gt;do something else?&lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment></environment>
        <key id="879039">MONGOCRYPT-159</key>
            <summary>Define expected behavior when listCollections returns no collection info document</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</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="13201">Fixed</resolution>
                                        <assignee username="kevin.albertson@mongodb.com">Kevin Albertson</assignee>
                                    <reporter username="shane.harvey@mongodb.com">Shane Harvey</reporter>
                        <labels>
                    </labels>
                <created>Tue, 30 Jul 2019 01:53:46 +0000</created>
                <updated>Sat, 28 Oct 2023 10:25:18 +0000</updated>
                            <resolved>Sun, 25 Aug 2019 13:37:41 +0000</resolved>
                                                                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="2385523" author="xgen-internal-githook" created="Sun, 25 Aug 2019 13:37:31 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: &apos;kevinAlbs&apos;, &apos;email&apos;: &apos;kevin.albertson@10gen.com&apos;, &apos;name&apos;: &apos;Kevin Albertson&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/MONGOCRYPT-159&quot; title=&quot;Define expected behavior when listCollections returns no collection info document&quot; class=&quot;issue-link&quot; data-issue-key=&quot;MONGOCRYPT-159&quot;&gt;&lt;del&gt;CDRIVER-3261&lt;/del&gt;&lt;/a&gt; clarify empty listCollections results&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/libmongocrypt/commit/cac50bcbdcf201259f6a75fd6ee762ec7a84bb27&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/libmongocrypt/commit/cac50bcbdcf201259f6a75fd6ee762ec7a84bb27&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2351088" author="shane.harvey" created="Tue, 30 Jul 2019 19:17:16 +0000"  >&lt;p&gt;Thanks that makes sense to me.&lt;/p&gt;

&lt;p&gt;I think this is another case where using the client side schemaMap option is more secure than relying on listCollections. Consider that if the collection is dropped or the jsonSchema validator is removed then previously encrypted fields will no longer be encrypted and will be sent in plaintext to the server. &lt;/p&gt;</comment>
                            <comment id="2350102" author="kevin.albertson" created="Tue, 30 Jul 2019 13:29:04 +0000"  >&lt;p&gt;In this case, skip the call to mongocrypt_ctx_mongo_feed. It is not an error, since even collections without a schema are checked through mongocryptd (e.g. aggregate with $lookup is always prohibited because it may fetch results from a different collection that does have automatic encryption enabled).&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|hv73vz:</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>