<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:37:54 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-2133] Aggregate should not accept bson.D as a pipeline</title>
                <link>https://jira.mongodb.org/browse/GODRIVER-2133</link>
                <project id="14289" key="GODRIVER">Go Driver</project>
                    <description>&lt;p&gt;Aggregate() functions currently accept bson.D as a valid value for the pipeline parameter but should not allow this because a bson.D is semantically a single document while a pipeline is an array of documents. This likely works internally because bson.D is implemented as a slice of bson.E, so it passes our &quot;value is a slice&quot; check in transformAggregatePipeline. We may have to special case bson.D and possibly other slice-based types like bson.Raw to prevent this. A reproducible example of this issue is &lt;a href=&quot;https://gist.github.com/divjotarora/d2dee6fa97a9529300d30d9adac10718&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;</description>
                <environment></environment>
        <key id="1853873">GODRIVER-2133</key>
            <summary>Aggregate should not accept bson.D as a pipeline</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="13201">Fixed</resolution>
                                        <assignee username="benji.rewis@mongodb.com">Benji Rewis</assignee>
                                    <reporter username="divjot.arora@mongodb.com">Divjot Arora</reporter>
                        <labels>
                    </labels>
                <created>Tue, 17 Aug 2021 23:05:05 +0000</created>
                <updated>Sat, 28 Oct 2023 11:37:43 +0000</updated>
                            <resolved>Wed, 1 Sep 2021 18:26:24 +0000</resolved>
                                                    <fixVersion>1.7.2</fixVersion>
                                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="4034807" author="xgen-internal-githook" created="Wed, 1 Sep 2021 18:28:27 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Benjamin Rewis&apos;, &apos;email&apos;: &apos;32186188+benjirewis@users.noreply.github.com&apos;, &apos;username&apos;: &apos;benjirewis&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-2133&quot; title=&quot;Aggregate should not accept bson.D as a pipeline&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-2133&quot;&gt;&lt;del&gt;GODRIVER-2133&lt;/del&gt;&lt;/a&gt; Error on nonempty semantic single documents as aggregate pipelines (#721)&lt;br/&gt;
Branch: release/1.7&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/commit/1e6b45648cb57c2441e168355255bceeaf9215a5&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-go-driver/commit/1e6b45648cb57c2441e168355255bceeaf9215a5&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4034800" author="xgen-internal-githook" created="Wed, 1 Sep 2021 18:26:01 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Benjamin Rewis&apos;, &apos;email&apos;: &apos;32186188+benjirewis@users.noreply.github.com&apos;, &apos;username&apos;: &apos;benjirewis&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-2133&quot; title=&quot;Aggregate should not accept bson.D as a pipeline&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-2133&quot;&gt;&lt;del&gt;GODRIVER-2133&lt;/del&gt;&lt;/a&gt; Error on nonempty semantic single documents as aggregate pipelines (#721)&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/commit/3a0c0a5787952438f1ca041f7b0cf64204ee187e&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-go-driver/commit/3a0c0a5787952438f1ca041f7b0cf64204ee187e&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4029521" author="benji.rewis" created="Mon, 30 Aug 2021 16:35:51 +0000"  >&lt;p&gt;To preserve the existing behavior, we&apos;ve decided to throw a more informative client-side error when a &lt;em&gt;non-empty&lt;/em&gt; &lt;tt&gt;bson.D,&lt;/tt&gt; &lt;tt&gt;bsoncore.Document&lt;/tt&gt; or &lt;tt&gt;bson.Raw&lt;/tt&gt; is passed as the &lt;tt&gt;pipeline&lt;/tt&gt; parameter. Because the empty versions of those types behave &quot;as expected&quot;, we won&apos;t stop the user from using them.&lt;/p&gt;

&lt;p&gt;PR:&#160;&lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/pull/721&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-go-driver/pull/721&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                    <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_10257" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Documentation Changes</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="11861"><![CDATA[Not Needed]]></customfieldvalue>

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