<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 09:03:17 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>[JAVA-4922] Error Code from WriteError not propagated to MongoServerException (3.12.x line)</title>
                <link>https://jira.mongodb.org/browse/JAVA-4922</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;h4&gt;&lt;a name=&quot;Summary&quot;&gt;&lt;/a&gt;Summary&lt;/h4&gt;

&lt;p&gt;&lt;em&gt;The MongoWriteException doesn&apos;t propagate down the error code to the MongoServerException which causes it to use the default value. This is a regression as it looks like version 3.12.8 does not have the same problem.&lt;/em&gt;&lt;/p&gt;
&lt;h4&gt;&lt;a name=&quot;HowtoReproduce&quot;&gt;&lt;/a&gt;How to Reproduce&lt;/h4&gt;

&lt;p&gt;&lt;em&gt;Any operation that throws a MongoWriteException (duplicate key for one) will throw an exception that does not contain the error code for the exception.&lt;/em&gt;&lt;/p&gt;
&lt;h4&gt;&lt;a name=&quot;AdditionalBackground&quot;&gt;&lt;/a&gt;Additional Background&lt;/h4&gt;

&lt;p&gt;&lt;em&gt;It looks like this was introduced on the 4.x line and was closed as part of &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-4219&quot; title=&quot;Error Code from WriteError not propagated to MongoServerException&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-4219&quot;&gt;&lt;del&gt;JAVA-4219&lt;/del&gt;&lt;/a&gt;. Through the following &lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/pull/745&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;PR&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;</description>
                <environment></environment>
        <key id="2306894">JAVA-4922</key>
            <summary>Error Code from WriteError not propagated to MongoServerException (3.12.x line)</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="3">Duplicate</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="m9nrgeur0x9d@blurme.net">Gavin Line</reporter>
                        <labels>
                    </labels>
                <created>Tue, 4 Apr 2023 22:12:57 +0000</created>
                <updated>Thu, 6 Apr 2023 22:48:30 +0000</updated>
                            <resolved>Wed, 5 Apr 2023 12:40:53 +0000</resolved>
                                    <version>3.12.9</version>
                                                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="5326265" author="jeff.yemin" created="Wed, 5 Apr 2023 12:40:53 +0000"  >&lt;p&gt;Closing as a duplicate of &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-4219&quot; title=&quot;Error Code from WriteError not propagated to MongoServerException&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-4219&quot;&gt;&lt;del&gt;JAVA-4219&lt;/del&gt;&lt;/a&gt;, and I&apos;ll re-open &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-4219&quot; title=&quot;Error Code from WriteError not propagated to MongoServerException&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-4219&quot;&gt;&lt;del&gt;JAVA-4219&lt;/del&gt;&lt;/a&gt; to consider whether to release a 3.12.x patch build that contains that fix.&#160;&#160;&lt;/p&gt;

&lt;p&gt;Normally we would not release a patch for the 3.12 driver three years after 4.0 was released, but we will consider an exception to that practice for this issue, as we kind of messed up by not backporting &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-4219&quot; title=&quot;Error Code from WriteError not propagated to MongoServerException&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-4219&quot;&gt;&lt;del&gt;JAVA-4219&lt;/del&gt;&lt;/a&gt; immediately.&lt;/p&gt;</comment>
                            <comment id="5326233" author="jeff.yemin" created="Wed, 5 Apr 2023 12:32:28 +0000"  >&lt;p&gt;This seems to have been caused by the backport of JAVA-3993 to the 3.12.x branch, and released in 3.12.9.  But the subsequent change of &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-4219&quot; title=&quot;Error Code from WriteError not propagated to MongoServerException&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-4219&quot;&gt;&lt;del&gt;JAVA-4219&lt;/del&gt;&lt;/a&gt;, which fixed a regression introduced by JAVA-3993, was not backported.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="1807542">JAVA-4219</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10520">
                    <name>Problem/Incident</name>
                                                                <inwardlinks description="is caused by">
                                                        </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <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_14266" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Documentation Changes Summary</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>&lt;p&gt;1.  What would you like to communicate to the user about this feature?&lt;br/&gt;
2.  Would you like the user to see examples of the syntax and/or executable code and its output?&lt;br/&gt;
3.  Which versions of the driver/connector does this apply to?&lt;/p&gt;</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|i1lppc:</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>