<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 09:09:00 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-576] Include the reason crypt_shared failed to load in error message</title>
                <link>https://jira.mongodb.org/browse/MONGOCRYPT-576</link>
                <project id="17481" key="MONGOCRYPT">Libmongocrypt</project>
                    <description>&lt;h1&gt;&lt;a name=&quot;Proposal&quot;&gt;&lt;/a&gt;Proposal&lt;/h1&gt;

&lt;p&gt;Include the error from &lt;a href=&quot;https://github.com/mongodb/libmongocrypt/blob/aa145adb538aeaf530e530ee801ef81391e655b4/src/mongocrypt.c#L368&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;mcr_dll_open&lt;/a&gt; when crypt_shared fails to load and an override path is set. Include the error from mcr_dll_open to &lt;a href=&quot;https://github.com/mongodb/libmongocrypt/blob/aa145adb538aeaf530e530ee801ef81391e655b4/src/mongocrypt.c#L824-L829&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;this error&lt;/a&gt;.&lt;/p&gt;

&lt;h1&gt;&lt;a name=&quot;Background%26Motivation&quot;&gt;&lt;/a&gt;Background &amp;amp; Motivation&lt;/h1&gt;

&lt;p&gt;Motivated by a discussion with &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=kenneth.white%40mongodb.com&quot; class=&quot;user-hover&quot; rel=&quot;kenneth.white@mongodb.com&quot;&gt;kenneth.white@mongodb.com&lt;/a&gt;. A common mistake is using crypt_shared library built for the wrong architecture. The error returned by the driver does not indicate the cause of the error. Example:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;A crypt_shared override path was specified &lt;span class=&quot;error&quot;&gt;&amp;#91;/Users/kevin.albertson/bin/mongo_crypt_shared_v1-macos-x86_64-enterprise-6.0.5/lib/mongo_crypt_v1.dylib&amp;#93;&lt;/span&gt;, but we failed to open a dynamic library at that location&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;libmongocrypt &lt;a href=&quot;https://github.com/mongodb/libmongocrypt/blob/aa145adb538aeaf530e530ee801ef81391e655b4/src/mongocrypt.c#L372-L376&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;logs the error from mcr_dll_open&lt;/a&gt;:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;dlopen(/Users/kevin.albertson/bin/mongo_crypt_shared_v1-macos-x86_64-enterprise-6.0.5/lib/mongo_crypt_v1.dylib, 0x0005): tried: &apos;/Users/kevin.albertson/code/libmongocrypt/.install/lib//mongo_crypt_v1.dylib&apos; (no such file), &apos;/Users/kevin.albertson/bin/mongo_crypt_shared_v1-macos-x86_64-enterprise-6.0.5/lib/mongo_crypt_v1.dylib&apos; (mach-o file, but is an incompatible architecture (have (x86_64), need (arm64e)))&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;Not all drivers surface libmongocrypt logs. See &lt;a href=&quot;https://docs.google.com/spreadsheets/d/164tUvML7Eq6a1Ai4X2RAJ4XCiIpg1D5eRbkIwFrPxYY/edit#gid=0&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;Do drivers expose libmongocrypt logs?&lt;/a&gt;.&lt;/p&gt;</description>
                <environment></environment>
        <key id="2329144">MONGOCRYPT-576</key>
            <summary>Include the reason crypt_shared failed to load in error message</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="10300" iconUrl="https://jira.mongodb.org/images/icons/priorities/medium.svg">Unknown</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>Mon, 1 May 2023 17:50:47 +0000</created>
                <updated>Sat, 28 Oct 2023 10:26:00 +0000</updated>
                            <resolved>Mon, 8 May 2023 19:04:18 +0000</resolved>
                                                    <fixVersion>1.8.0</fixVersion>
                                                        <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="5412202" author="xgen-internal-githook" created="Tue, 9 May 2023 17:09:20 +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-576&quot; title=&quot;Include the reason crypt_shared failed to load in error message&quot; class=&quot;issue-link&quot; data-issue-key=&quot;MONGOCRYPT-576&quot;&gt;&lt;del&gt;MONGOCRYPT-576&lt;/del&gt;&lt;/a&gt; Include the error from `mcr_dll_open` in hard error (#638)&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;add a failing test&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;add optional status to _try_load_csfle&lt;br/&gt;
Branch: &lt;a href=&quot;https://jira.mongodb.org/browse/NODE-5239&quot; title=&quot;Update project dependencies (FY24Q2)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;NODE-5239&quot;&gt;&lt;del&gt;NODE-5239&lt;/del&gt;&lt;/a&gt;-deps&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/libmongocrypt/commit/792beee31246fd6dfc7fc8c0629b8769a3fabddf&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/libmongocrypt/commit/792beee31246fd6dfc7fc8c0629b8769a3fabddf&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="5406890" author="xgen-internal-githook" created="Sun, 7 May 2023 20:50:24 +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-576&quot; title=&quot;Include the reason crypt_shared failed to load in error message&quot; class=&quot;issue-link&quot; data-issue-key=&quot;MONGOCRYPT-576&quot;&gt;&lt;del&gt;MONGOCRYPT-576&lt;/del&gt;&lt;/a&gt; Include the error from `mcr_dll_open` in hard error (#638)&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;add a failing test&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;add optional status to _try_load_csfle&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/libmongocrypt/commit/792beee31246fd6dfc7fc8c0629b8769a3fabddf&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/libmongocrypt/commit/792beee31246fd6dfc7fc8c0629b8769a3fabddf&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="5406889" author="mms-build@10gen.com" created="Sun, 7 May 2023 20:50:24 +0000"  >&lt;p&gt; &lt;a href=&quot;https://github.com/kevinAlbs&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;kevinAlbs&lt;/a&gt; merged a pull request (&lt;a href=&quot;https://github.com/mongodb/libmongocrypt/pull/638&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;MONGOCRYPT-576 Include the error from `mcr_dll_open` in hard error&lt;/a&gt;) into the following branch:&lt;br/&gt;
                       master: &lt;a href=&quot;https://github.com/kevinAlbs/libmongocrypt/commit/792beee31246fd6dfc7fc8c0629b8769a3fabddf&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;792beee31246fd6dfc7fc8c0629b8769a3fabddf&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|i1phgg:</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>