<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:35:07 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-854] Err: cannot transform type bson.D to a BSON Document</title>
                <link>https://jira.mongodb.org/browse/GODRIVER-854</link>
                <project id="14289" key="GODRIVER">Go Driver</project>
                    <description>&lt;p&gt;As part of mgo-&amp;gt;go driver migration, I found weird failures in evg:&#160;&lt;br/&gt;
&lt;a href=&quot;https://evergreen.mongodb.com/version/5c75aecd2fbabe2eb0b55062&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://evergreen.mongodb.com/version/5c75aecd2fbabe2eb0b55062&lt;/a&gt;&#160;.&#160;&lt;br/&gt;
more specifically the error:&#160;&lt;/p&gt;

&lt;p&gt;Err: cannot transform type bson.D to a BSON Document: WriteArray can only write a Array while positioned on a Element or Value but is positioned on a TopLevel&lt;/p&gt;

&lt;p&gt;The code caused this error:&#160;&lt;br/&gt;
session.Database(&quot;admin&quot;).RunCommand(context.Background(), bson.D{{&quot;buildInfo&quot;, int32(1)}}).Decode(&amp;amp;result)&lt;/p&gt;

&lt;p&gt;(&lt;a href=&quot;https://github.com/10gen/mms-backup/pull/317/commits/7b5323541e89a0fb77609ecdea9c99469f31e3af)&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/10gen/mms-backup/pull/317/commits/7b5323541e89a0fb77609ecdea9c99469f31e3af)&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;By changing&#160;bson.D{{&quot;buildInfo&quot;, int32(1)}} to&#160;bson.M&lt;/p&gt;
{&quot;buildInfo&quot; :&#160;int32(1)}
&lt;p&gt; the error went away.&#160;&lt;/p&gt;

&lt;p&gt;Can you please take a look? thanks!&lt;/p&gt;

&lt;p&gt;Note: no mgo imported nor deps installed&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</description>
                <environment></environment>
        <key id="705571">GODRIVER-854</key>
            <summary>Err: cannot transform type bson.D to a BSON Document</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="13203">Gone away</resolution>
                                        <assignee username="kris.brandow@mongodb.com">Kristofer Brandow</assignee>
                                    <reporter username="xiang.gao@mongodb.com">Xiang Gao</reporter>
                        <labels>
                    </labels>
                <created>Wed, 27 Feb 2019 03:17:41 +0000</created>
                <updated>Fri, 27 Oct 2023 20:01:28 +0000</updated>
                            <resolved>Fri, 8 Mar 2019 16:51:49 +0000</resolved>
                                                                    <component>BSON</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="2175219" author="xiang.gao" created="Thu, 7 Mar 2019 22:34:00 +0000"  >&lt;p&gt;Ah I see. There&apos;s a bug in our EVG set up &#8211; we&apos;ve been using 1.7. Thanks for the help! Good to close&lt;/p&gt;</comment>
                            <comment id="2170061" author="ian@10gen.com" created="Mon, 4 Mar 2019 21:26:06 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=xiang.gao&quot; class=&quot;user-hover&quot; rel=&quot;xiang.gao&quot;&gt;xiang.gao&lt;/a&gt; can you please ensure that your EVG env is correctly set up to use Go 1.10 or later?&lt;/p&gt;</comment>
                            <comment id="2166233" author="xiang.gao" created="Thu, 28 Feb 2019 15:29:21 +0000"  >&lt;p&gt;primitive.D works...&#160;&lt;/p&gt;</comment>
                            <comment id="2163897" author="xiang.gao" created="Wed, 27 Feb 2019 03:19:22 +0000"  >&lt;p&gt;Also same code works fine in local env. running with go1.10, and go driver&#160;v1.0.0-rc1&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="840896">GODRIVER-1194</issuekey>
        </issuelink>
                            </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_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|huemin:</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>