<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:37:09 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-1797] Undefined attribute that is an array fails completing unmarshal</title>
                <link>https://jira.mongodb.org/browse/GODRIVER-1797</link>
                <project id="14289" key="GODRIVER">Go Driver</project>
                    <description>&lt;p&gt;similar to issue &lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-1235&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://jira.mongodb.org/browse/GODRIVER-1235&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;However, if the json document contains a field that is not defined in the struct and that field happens to be an array, the Skip() call on line 284 os struct_codec.go reads all the way to the end of document (EOD) and the DecodeValue() returns, it doesn&apos;t continue parsing the other fields in the document.&#160; Attached is a series of tests that show the behavior.&#160; I don&apos;t see any struct flags and or other flags to change this behavior.&#160;&lt;/p&gt;

&lt;p&gt; If an undefined field is a primitive (string, int, etc), the parser works fine.&#160; If the&#160; undefined field is another struct/map the parser works fine.&lt;/p&gt;</description>
                <environment></environment>
        <key id="1544532">GODRIVER-1797</key>
            <summary>Undefined attribute that is an array fails completing unmarshal</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="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="benji.rewis@mongodb.com">Benji Rewis</assignee>
                                    <reporter username="tyson.henry@burstiq.com">Tyson Henry</reporter>
                        <labels>
                    </labels>
                <created>Tue, 17 Nov 2020 22:08:37 +0000</created>
                <updated>Wed, 9 Dec 2020 19:58:16 +0000</updated>
                            <resolved>Wed, 9 Dec 2020 19:57:34 +0000</resolved>
                                    <version>1.4.3</version>
                                                    <component>BSON</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="3523707" author="benji.rewis" created="Wed, 9 Dec 2020 19:57:34 +0000"  >&lt;p&gt;This bug has been fixed in doing &lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-1235&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;GODRIVER-1235&lt;/a&gt;. Embedded arrays and objects in undefined fields were not being skipped correctly during extended JSON unmarshalling.&lt;/p&gt;</comment>
                            <comment id="3512984" author="divjot.arora" created="Wed, 2 Dec 2020 18:41:49 +0000"  >&lt;p&gt;Moving back to Scheduled as we&apos;ve increased the scope of &lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-1235&quot; title=&quot;Extended JSON can fail to parse if undefined document field contains a document or an array&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-1235&quot;&gt;&lt;del&gt;GODRIVER-1235&lt;/del&gt;&lt;/a&gt;. Once that&apos;s done, we&apos;ll come back to this and see if it&apos;s still a problem.&lt;/p&gt;</comment>
                            <comment id="3512908" author="benji.rewis" created="Wed, 2 Dec 2020 18:06:29 +0000"  >&lt;p&gt;&lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/pull/548&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-go-driver/pull/548&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3497094" author="kevin.albertson" created="Thu, 19 Nov 2020 03:04:49 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=tyson.henry%40burstiq.com&quot; class=&quot;user-hover&quot; rel=&quot;tyson.henry@burstiq.com&quot;&gt;tyson.henry@burstiq.com&lt;/a&gt;, thank you for the bug report (and the helpful test). I was able to reproduce this with the test you provided. The team will decide when to schedule this soon.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="893291">GODRIVER-1235</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="893291">GODRIVER-1235</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="287629" name="codec2_test.go" size="2387" author="tyson.henry@burstiq.com" created="Tue, 17 Nov 2020 22:08:19 +0000"/>
                    </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|hxocfr:</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>