<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:47:31 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>[CSHARP-4201] MongoDB.Driver not supporting AOT native build</title>
                <link>https://jira.mongodb.org/browse/CSHARP-4201</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;Generic exception not supported by AOT native build, is there anyway to change generic exception from your side?&lt;/p&gt;

&lt;p&gt;Please check this for more details&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/dotnet/runtime/issues/70400&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/dotnet/runtime/issues/70400&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
        <key id="2064587">CSHARP-4201</key>
            <summary>MongoDB.Driver not supporting AOT native build</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</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="2">Won&apos;t Fix</resolution>
                                        <assignee username="boris.dogadov@mongodb.com">Boris Dogadov</assignee>
                                    <reporter username="jaafar.abusair@gmail.com">Jaafar N/A</reporter>
                        <labels>
                    </labels>
                <created>Wed, 8 Jun 2022 18:18:59 +0000</created>
                <updated>Thu, 16 Jun 2022 21:06:42 +0000</updated>
                            <resolved>Thu, 16 Jun 2022 21:06:42 +0000</resolved>
                                                                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="4622134" author="JIRAUSER1257742" created="Thu, 16 Jun 2022 21:06:29 +0000"  >&lt;p&gt;We are glad that you found a workaround for this issue. Given that this issue might to be fixed .NET 7 final release, we are closing this driver issue as Won&apos;t Fix. If it is present in the final release of .NET 7, please re-open this issue so that we can re-triage the problem.&lt;/p&gt;</comment>
                            <comment id="4613767" author="JIRAUSER1269568" created="Tue, 14 Jun 2022 09:44:09 +0000"  >&lt;p&gt;Thank you for looking into it,&lt;/p&gt;

&lt;p&gt;The problem with catching generic exception, you need c# application and add Microsoft.ILComplier for AOT native build.&lt;/p&gt;

&lt;p&gt;I mange to solve it by downloading MangoDB.Driver project code, and I have updated the generic exception&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;catch (MongoBulkWriteException&amp;lt;TDocument&amp;gt; ex)&lt;/tt&gt;&#160;&lt;/p&gt;

&lt;p&gt;to&#160;&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;catch (Exception ex) when (ex is MongoBulkWriteException&amp;lt;TDocument&amp;gt;)&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;{{}}&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;In the following file&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/blob/master/src/MongoDB.Driver/MongoCollectionBase.cs#L245&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/blob/master/src/MongoDB.Driver/MongoCollectionBase.cs#L245&lt;/a&gt;&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;{{}}&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;Then it worked with native build&lt;/tt&gt;&lt;/p&gt;</comment>
                            <comment id="4611826" author="JIRAUSER1257742" created="Mon, 13 Jun 2022 17:13:18 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=jaafar.abusair%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;jaafar.abusair@gmail.com&quot;&gt;jaafar.abusair@gmail.com&lt;/a&gt;,&lt;br/&gt;
Hopefully this issue is going to be resolved in the final .Net 7 release.&lt;br/&gt;
If not, we will reconsider addressing this issue.&lt;/p&gt;

&lt;p&gt;We could not easily reproduce this issue.&lt;br/&gt;
It would be great to have a full self-contained sample demonstrating the failure, so we could better track the resolution if this issue.&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;</comment>
                            <comment id="4603205" author="JIRAUSER1257742" created="Wed, 8 Jun 2022 20:22:57 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=jaafar.abusair%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;jaafar.abusair@gmail.com&quot;&gt;jaafar.abusair@gmail.com&lt;/a&gt;, thank you for your question, we will be looking into it.&lt;br/&gt;
Please follow this ticket for further updates.&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|i0gs28:</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>