<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 09:08:48 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-488] Context may not enter MONGOCRYPT_CTX_ERROR on KMS provider validation errors</title>
                <link>https://jira.mongodb.org/browse/MONGOCRYPT-488</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;Update error returns in &lt;tt&gt;mongocrypt_ctx_provide_kms_providers&lt;/tt&gt; to set the &lt;tt&gt;ctx-&amp;gt;state&lt;/tt&gt; to &lt;tt&gt;MONGOCRYPT_CTX_ERROR&lt;/tt&gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;&lt;b&gt;Background &amp;amp; Motivation&lt;/b&gt;&lt;br/&gt;
An error in a context function is expected to set the state of the context as MONGOCRYPT_CTX_ERROR. Some drivers require this behavior for correctness. For example, the Node.JS bindings &lt;a href=&quot;https://github.com/mongodb/libmongocrypt/blob/400167e2092036babd2f000b13a0c87f5503442f/bindings/node/src/mongocrypt.cc#L822&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;do not always check the return values&lt;/a&gt; of some &lt;tt&gt;mongocrypt_ctx_*&lt;/tt&gt; functions, and may rely on the &lt;a href=&quot;https://github.com/mongodb/libmongocrypt/blob/400167e2092036babd2f000b13a0c87f5503442f/bindings/node/lib/stateMachine.js#L230&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;context state to return an error&lt;/a&gt;.&lt;/p&gt;</description>
                <environment></environment>
        <key id="2158400">MONGOCRYPT-488</key>
            <summary>Context may not enter MONGOCRYPT_CTX_ERROR on KMS provider validation errors</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>
                    </labels>
                <created>Thu, 13 Oct 2022 13:22:22 +0000</created>
                <updated>Sat, 28 Oct 2023 10:25:51 +0000</updated>
                            <resolved>Sun, 16 Oct 2022 23:41:36 +0000</resolved>
                                                    <fixVersion>1.6.2</fixVersion>
                                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="4905853" author="xgen-internal-githook" created="Sun, 16 Oct 2022 23:43:43 +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-488&quot; title=&quot;Context may not enter MONGOCRYPT_CTX_ERROR on KMS provider validation errors&quot; class=&quot;issue-link&quot; data-issue-key=&quot;MONGOCRYPT-488&quot;&gt;&lt;del&gt;MONGOCRYPT-488&lt;/del&gt;&lt;/a&gt; set context error state in provide_kms_providers (#475)&lt;br/&gt;
Branch: r1.6&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/libmongocrypt/commit/406a0b0a8b65c09f897f5f1b30a7422cf15298ef&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/libmongocrypt/commit/406a0b0a8b65c09f897f5f1b30a7422cf15298ef&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4905851" author="xgen-internal-githook" created="Sun, 16 Oct 2022 23:41:19 +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-488&quot; title=&quot;Context may not enter MONGOCRYPT_CTX_ERROR on KMS provider validation errors&quot; class=&quot;issue-link&quot; data-issue-key=&quot;MONGOCRYPT-488&quot;&gt;&lt;del&gt;MONGOCRYPT-488&lt;/del&gt;&lt;/a&gt; set context error state in provide_kms_providers (#475)&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/libmongocrypt/commit/ba45dac26063574211e648f3db986529436b5eac&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/libmongocrypt/commit/ba45dac26063574211e648f3db986529436b5eac&lt;/a&gt;&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|i0wma0:</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>