<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:37:42 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>[GODRIVER-2042] Returning errInfo - Schema Validation</title>
                <link>https://jira.mongodb.org/browse/GODRIVER-2042</link>
                <project id="14289" key="GODRIVER">Go Driver</project>
                    <description>&lt;p&gt;Version 5 of mongodb resolved the issue &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-20547&quot; title=&quot;Expose the reason an operation fails document validation&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-20547&quot;&gt;&lt;del&gt;SERVER-20547&lt;/del&gt;&lt;/a&gt;. Now the MongoDb server is able to return unvalidated fields in a schema. The information comes via the &#8220;errInfo&#8221; variable, but mongo-go-driver only returns the &#8220;errmsg&#8221;.&lt;/p&gt;

&lt;p&gt;I think &#8220;errInfo&#8221; can be returned by modifying the ExtractErrorFromServerResponse function. Am I right? Any tips on how best to do this and submit as a pull request?&lt;/p&gt;

&lt;p&gt;Thank you.&lt;/p&gt;</description>
                <environment></environment>
        <key id="1776037">GODRIVER-2042</key>
            <summary>Returning errInfo - Schema Validation</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</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="matt.dale@mongodb.com">Matt Dale</assignee>
                                    <reporter username="vini.gracindo@gmail.com">Vinnicyus Gracindo</reporter>
                        <labels>
                    </labels>
                <created>Thu, 10 Jun 2021 19:06:41 +0000</created>
                <updated>Mon, 14 Jun 2021 23:28:08 +0000</updated>
                            <resolved>Mon, 14 Jun 2021 23:28:08 +0000</resolved>
                                                                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="3877401" author="JIRAUSER1259527" created="Mon, 14 Jun 2021 23:27:14 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=vini.gracindo%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;vini.gracindo@gmail.com&quot;&gt;vini.gracindo@gmail.com&lt;/a&gt; thanks for the report!&lt;/p&gt;

&lt;p&gt;You&apos;re correct, as of MongoDB server v5.0, the server returns schema validation failure information via the &lt;tt&gt;errInfo&lt;/tt&gt; field on error responses. The change to support that new error field in the Go driver is actually in-progress as part of &lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-1867&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;GODRIVER-1867&lt;/a&gt;. I&apos;m going to mark this ticket as a duplicate of &lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-1867&quot; title=&quot;Expose the Reason an Operation Fails Document Validation&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-1867&quot;&gt;&lt;del&gt;GODRIVER-1867&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Please watch &lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-1867&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;GODRIVER-1867&lt;/a&gt; for updates.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10420">
                    <name>Backports</name>
                                            <outwardlinks description="backported by">
                                        <issuelink>
            <issuekey id="230795">SERVER-20547</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="1612666">GODRIVER-1867</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </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_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hz5iiv:</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>