<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 09:08: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>[MONGOCRYPT-441] Accept string values for QueryType and IndexType</title>
                <link>https://jira.mongodb.org/browse/MONGOCRYPT-441</link>
                <project id="17481" key="MONGOCRYPT">Libmongocrypt</project>
                    <description>&lt;p&gt;&lt;b&gt;Scope&lt;/b&gt;&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;Allow IndexType option to be set as a string. Accept the values &quot;Indexed&quot; and &quot;Unindexed&quot;.
	&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
		&lt;li&gt;Consider extending &lt;tt&gt;mongocrypt_ctx_setopt_algorithm&lt;/tt&gt; to accept &quot;Indexed&quot; and &quot;Unindexed&quot;.&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
	&lt;li&gt;Allow QueryType option to be set as a string. Accept the values &quot;equality&quot;.&lt;/li&gt;
	&lt;li&gt;Consider adding a new function to set all explicit encryption options as a BSON document.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;&lt;b&gt;Background &amp;amp; Motivation&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;The current &lt;a href=&quot;https://github.com/mongodb/specifications/blob/62cb8142e31b16473cc82326d26793c4ff086caa/source/client-side-encryption/client-side-encryption.rst#algorithm&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;driver API&lt;/a&gt; accepts string values for EncryptOpts.algorithm &quot;Indexed&quot; and &quot;Unindexed&quot;. The driver passes this to libmongocrypt using an enum value in &lt;tt&gt;mongocrypt_ctx_setopt_index_type&lt;/tt&gt;.&lt;/p&gt;

&lt;p&gt;The current &lt;a href=&quot;https://github.com/mongodb/specifications/blob/62cb8142e31b16473cc82326d26793c4ff086caa/source/client-side-encryption/client-side-encryption.rst#encryptopts&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;driver API&lt;/a&gt; uses an enum for QueryType. This is passed to libmongocrypt using an enum value in &lt;tt&gt;mongocrypt_ctx_setopt_query_type&lt;/tt&gt;.&lt;/p&gt;

&lt;p&gt;Accepting string values in the driver API, and forwarding those string values to libmongocrypt API helps with forward compatibility. When new values of QueryType and IndexType are added in libmongocrypt, users would only need to upgrade libmongocrypt, and not the driver, to use the new values.&lt;/p&gt;</description>
                <environment></environment>
        <key id="2065487">MONGOCRYPT-441</key>
            <summary>Accept string values for QueryType and IndexType</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</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="colby.pike@mongodb.com">Colby Pike</assignee>
                                    <reporter username="kevin.albertson@mongodb.com">Kevin Albertson</reporter>
                        <labels>
                    </labels>
                <created>Thu, 9 Jun 2022 20:08:31 +0000</created>
                <updated>Sat, 25 Jun 2022 00:17:29 +0000</updated>
                            <resolved>Thu, 16 Jun 2022 22:20:49 +0000</resolved>
                                                    <fixVersion>1.5.0-rc2</fixVersion>
                                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="4627407" author="xgen-internal-githook" created="Mon, 20 Jun 2022 16:57:47 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Anna Henningsen&apos;, &apos;email&apos;: &apos;anna@addaleax.net&apos;, &apos;username&apos;: &apos;addaleax&apos;}
&lt;p&gt;Message: chore(&lt;a href=&quot;https://jira.mongodb.org/browse/NODE-4304&quot; title=&quot;Accept string values for QueryType and IndexType&quot; class=&quot;issue-link&quot; data-issue-key=&quot;NODE-4304&quot;&gt;&lt;del&gt;NODE-4304&lt;/del&gt;&lt;/a&gt;): accept string value for queryType (#373)&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/MONGOCRYPT-441&quot; title=&quot;Accept string values for QueryType and IndexType&quot; class=&quot;issue-link&quot; data-issue-key=&quot;MONGOCRYPT-441&quot;&gt;&lt;del&gt;MONGOCRYPT-441&lt;/del&gt;&lt;/a&gt; has no impact besides updating `equality` to&lt;br/&gt;
be spelled lowercase.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/libmongocrypt/commit/b5a7a2a723c7a29e5e694e84372e1b843781d3e8&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/libmongocrypt/commit/b5a7a2a723c7a29e5e694e84372e1b843781d3e8&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4623397" author="xgen-internal-githook" created="Fri, 17 Jun 2022 12:54:12 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;vector-of-bool&apos;, &apos;email&apos;: &apos;vectorofbool@gmail.com&apos;, &apos;username&apos;: &apos;vector-of-bool&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/MONGOCRYPT-441&quot; title=&quot;Accept string values for QueryType and IndexType&quot; class=&quot;issue-link&quot; data-issue-key=&quot;MONGOCRYPT-441&quot;&gt;&lt;del&gt;MONGOCRYPT-441&lt;/del&gt;&lt;/a&gt;: Update use of removed API (#370)&lt;/p&gt;

&lt;p&gt;Update use of removed API&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/libmongocrypt/commit/638b8090b971bbbfc396c4c31e4d66cd7e11668b&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/libmongocrypt/commit/638b8090b971bbbfc396c4c31e4d66cd7e11668b&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4622266" author="xgen-internal-githook" created="Thu, 16 Jun 2022 21:58:44 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;vector-of-bool&apos;, &apos;email&apos;: &apos;vectorofbool@gmail.com&apos;, &apos;username&apos;: &apos;vector-of-bool&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/MONGOCRYPT-441&quot; title=&quot;Accept string values for QueryType and IndexType&quot; class=&quot;issue-link&quot; data-issue-key=&quot;MONGOCRYPT-441&quot;&gt;&lt;del&gt;MONGOCRYPT-441&lt;/del&gt;&lt;/a&gt; Accept string arguments for queryType and &quot;index_type&quot; (#368)&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;Allow setting the index_type via setopt_algorithm()&lt;/li&gt;
	&lt;li&gt;Remove setopt_index_type from the API&lt;/li&gt;
	&lt;li&gt;Add an API that accepts query_type as a string&lt;/li&gt;
	&lt;li&gt;Define and use named constants for setopt strings&lt;/li&gt;
	&lt;li&gt;Replace setopt_query_type with string-accepting version&lt;/li&gt;
	&lt;li&gt;Update bindings for change in setopt_query_type API&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/libmongocrypt/commit/59f2492e979b3da9d834619d854d4517540d0d54&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/libmongocrypt/commit/59f2492e979b3da9d834619d854d4517540d0d54&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="4605721" author="jmikola@gmail.com" created="Thu, 9 Jun 2022 20:26:32 +0000"  >&lt;p&gt;In &lt;a href=&quot;https://jira.mongodb.org/browse/DRIVERS-2352&quot; title=&quot;EncryptOpts queryType should accept a string consistent with queryType in encryptedFields&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DRIVERS-2352&quot;&gt;DRIVERS-2352&lt;/a&gt;, I suggest that EncryptOpts accept the same string value for &lt;tt&gt;queryType&lt;/tt&gt; that the server accepts within &lt;tt&gt;encryptedFields&lt;/tt&gt;. This would be &lt;tt&gt;&quot;equality&quot;&lt;/tt&gt; (lowercase), and cause less confusion should users attempt to use a constant defined for EncryptOpts in &lt;tt&gt;encryptedFields&lt;/tt&gt;.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="2065501">DRIVERS-2352</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="2066649">CSHARP-4204</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="2066654">PYTHON-3301</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10620">
                    <name>Issue split</name>
                                            <outwardlinks description="split to">
                                        <issuelink>
            <issuekey id="2067569">CSHARP-4207</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="2067570">JAVA-4644</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="2067571">NODE-4304</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="2067572">PYTHON-3302</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10520">
                    <name>Problem/Incident</name>
                                            <outwardlinks description="causes">
                                        <issuelink>
            <issuekey id="2071520">PYTHON-3310</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                <customfield id="customfield_21957" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Binding Changes</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="22965"><![CDATA[Needed]]></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|hr6i7r:f3i</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>