<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:35:49 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-1166] The extJSONValueReader should honor the error of its underlying reader</title>
                <link>https://jira.mongodb.org/browse/GODRIVER-1166</link>
                <project id="14289" key="GODRIVER">Go Driver</project>
                    <description>&lt;p&gt;Currently, the &lt;tt&gt;extJSONValueReader&lt;/tt&gt; &lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/blob/60e65d0f2639c81f74a92904fcd10900e37b9be6/bson/bsonrw/extjson_reader.go#L84&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;will not honor the error&lt;/a&gt; returned by its underlying reader, and instead, will return &lt;tt&gt;ErrInvalidJSON&lt;/tt&gt;. This is probably not correct, since the underlying reader could easily error out for a reason that does not have to do with invalid JSON, and in either case, this removes vital information about why there was an error.&lt;/p&gt;

&lt;p&gt;I believe this code should return the error from the underlying reader, &lt;tt&gt;err&lt;/tt&gt;, instead of &lt;tt&gt;ErrInvalidJSON&lt;/tt&gt;.&lt;/p&gt;

&lt;p&gt;This ticket was created from &lt;a href=&quot;https://mongodb.slack.com/archives/C7WJZNUTA/p1561040642050900&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;this slack thread&lt;/a&gt;.&lt;/p&gt;</description>
                <environment></environment>
        <key id="825141">GODRIVER-1166</key>
            <summary>The extJSONValueReader should honor the error of its underlying reader</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="10038" iconUrl="https://jira.mongodb.org/images/icons/subtask.gif" description="">Backlog</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="may.hoque@mongodb.com">May Hoque</reporter>
                        <labels>
                            <label>jeff+</label>
                    </labels>
                <created>Thu, 27 Jun 2019 21:32:38 +0000</created>
                <updated>Mon, 8 Jan 2024 21:08:24 +0000</updated>
                                                            <fixVersion>2.0.0</fixVersion>
                                    <component>JSON &amp;amp; ExtJSON</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="4481234" author="may.hoque" created="Wed, 13 Apr 2022 18:45:40 +0000"  >&lt;p&gt;Yes, it makes it so that some classes of error are impossible for us to see in our logs for example, or expose to end-users because the reader is effectively hiding them from us.&lt;/p&gt;

&lt;p&gt;In general, this is a bug that affects every user of the code... people will be told their JSON is invalid even though it is not.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                        <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10012"><![CDATA[Major Change]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>GODRIVER-2973</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_21553" key="com.atlassian.jira.plugin.system.customfieldtypes:labels">
                        <customfieldname>Quarter</customfieldname>
                        <customfieldvalues>
                                        <label>FY24Q3</label>
    
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hr6jqv:s0000ywc</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>