<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 09:08:26 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-317] listCollections is repeatedly requested when no JSON schema is configured</title>
                <link>https://jira.mongodb.org/browse/MONGOCRYPT-317</link>
                <project id="17481" key="MONGOCRYPT">Libmongocrypt</project>
                    <description>&lt;p&gt;Automatic encryption unnecessarily requests &lt;tt&gt;listCollections&lt;/tt&gt; on a collection with no JSON schema configured.&lt;/p&gt;

&lt;p&gt;libmongocrypt checks if a collection has a JSON schema configured by doing the following:&lt;br/&gt;
1. Checks if there is an entry in the locally configured schema map.&lt;br/&gt;
2. Checks if there is a cached schema obtained from a previous listCollections reply.&lt;/p&gt;

&lt;p&gt;libmongocrypt will cache the response for a collection that does not have a JSON schema configured.&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/libmongocrypt/blob/91d2a11bea3569d46001a3a3ef57161bd3706eab/src/mongocrypt-ctx-encrypt.c#L104&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/libmongocrypt/blob/91d2a11bea3569d46001a3a3ef57161bd3706eab/src/mongocrypt-ctx-encrypt.c#L104&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;However, the check for a cached response does not account for collections that have no schema configured. The absense of a configured schema should still be cached.&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/libmongocrypt/blob/91d2a11bea3569d46001a3a3ef57161bd3706eab/src/mongocrypt-ctx-encrypt.c#L895&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/libmongocrypt/blob/91d2a11bea3569d46001a3a3ef57161bd3706eab/src/mongocrypt-ctx-encrypt.c#L895&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This results in drivers repeatedly requesting &lt;tt&gt;listCollections&lt;/tt&gt; unnecessarily.&lt;/p&gt;</description>
                <environment></environment>
        <key id="1677979">MONGOCRYPT-317</key>
            <summary>listCollections is repeatedly requested when no JSON schema is configured</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</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="kevin.albertson@mongodb.com">Kevin Albertson</reporter>
                        <labels>
                            <label>rp-track</label>
                    </labels>
                <created>Mon, 12 Apr 2021 15:52:32 +0000</created>
                <updated>Sat, 28 Oct 2023 10:25:34 +0000</updated>
                            <resolved>Fri, 3 Sep 2021 15:18:24 +0000</resolved>
                                                    <fixVersion>1.2.2</fixVersion>
                                    <component>C library</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="4039152" author="xgen-internal-githook" created="Fri, 3 Sep 2021 15:18:14 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Kevin Albertson&apos;, &apos;email&apos;: &apos;kevin.albertson@mongodb.com&apos;, &apos;username&apos;: &apos;kevinAlbs&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/MONGOCRYPT-317&quot; title=&quot;listCollections is repeatedly requested when no JSON schema is configured&quot; class=&quot;issue-link&quot; data-issue-key=&quot;MONGOCRYPT-317&quot;&gt;&lt;del&gt;MONGOCRYPT-317&lt;/del&gt;&lt;/a&gt; cache listCollections results with no JSON schema (#190)&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/libmongocrypt/commit/8eeeee95d30f577376fe3682ddd26dcd458ed54d&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/libmongocrypt/commit/8eeeee95d30f577376fe3682ddd26dcd458ed54d&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4036327" author="kevin.albertson" created="Thu, 2 Sep 2021 13:57:18 +0000"  >&lt;p&gt;PR:&#160;&lt;a href=&quot;https://github.com/mongodb/libmongocrypt/pull/190&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/libmongocrypt/pull/190&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3725937" author="esha.bhargava" created="Mon, 19 Apr 2021 19:06:35 +0000"  >&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="1877533">PYTHON-2909</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                                        </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="1700937">NODE-3262</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                            <customfield id="customfield_13552" key="com.go2group.jira.plugin.crm:crm_generic_field">
                        <customfieldname>Case</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[[5002K00000uDNFKQA4]]]></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|hr6jlj:</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>