<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:20:36 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>[CDRIVER-4329] Do not permit extra fields when matching embedded documents in unified spec tests</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-4329</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;This came up while investigating PHPLIB test failures in the &lt;tt&gt;let&lt;/tt&gt; spec tests (see: &lt;a href=&quot;https://jira.mongodb.org/browse/DRIVERS-2270&quot; title=&quot;Use $$unsetOrMatches for upsert and multi in update command expectations&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DRIVERS-2270&quot;&gt;DRIVERS-2270&lt;/a&gt;). We observed test failures in PHPLIB&apos;s test runner due to outgoing &lt;tt&gt;update&lt;/tt&gt; commands including explicit &lt;tt&gt;false&lt;/tt&gt; values for &lt;tt&gt;multi&lt;/tt&gt; and &lt;tt&gt;upsert&lt;/tt&gt; because spec tests did not use &lt;tt&gt;$$unsetOrMatches&lt;/tt&gt;; however, the same spec tests raised no error in &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-4198&quot; title=&quot;Support &amp;#39;let&amp;#39; option for multiple CRUD commands&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-4198&quot;&gt;&lt;del&gt;CDRIVER-4198&lt;/del&gt;&lt;/a&gt;, which suggested a libmongoc issue.&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;test_check_event&lt;/tt&gt;&#160;in&#160;&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/blob/1.21.1/src/libmongoc/tests/unified/runner.c&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;runner.c&lt;/a&gt;&#160;calls&#160;&lt;tt&gt;entity_map_match&lt;/tt&gt;&#160;for command and reply documents with&#160;&lt;tt&gt;allow_extra&lt;/tt&gt;&#160;as&#160;&lt;tt&gt;true&lt;/tt&gt;. It doesn&apos;t looked like&#160;&lt;tt&gt;bson_matcher_match&lt;/tt&gt;&#160;in&#160;&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/blob/1.21.1/src/libmongoc/tests/bsonutil/bson-match.c#L352&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;bson-match.c&lt;/a&gt;&#160;switches over to&#160;&lt;em&gt;not&lt;/em&gt;&#160;allowing extra fields in embedded documents, and instead applies the incoming&#160;&lt;tt&gt;allow_extra&lt;/tt&gt;&#160;field to all recursive calls. This conflicts with&#160;&lt;a href=&quot;https://github.com/mongodb/specifications/blob/master/source/unified-test-format/unified-test-format.rst#allowing-extra-fields-in-root-level-documents&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;Allowing Extra Fields in Root-level Documents&lt;/a&gt;&#160;from the unified spec.&lt;/p&gt;</description>
                <environment></environment>
        <key id="2020293">CDRIVER-4329</key>
            <summary>Do not permit extra fields when matching embedded documents in unified spec tests</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</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="-1">Unassigned</assignee>
                                    <reporter username="jmikola@mongodb.com">Jeremy Mikola</reporter>
                        <labels>
                    </labels>
                <created>Fri, 8 Apr 2022 13:43:11 +0000</created>
                <updated>Mon, 2 May 2022 21:21:51 +0000</updated>
                            <resolved>Mon, 2 May 2022 21:21:51 +0000</resolved>
                                                                    <component>libmongoc</component>
                    <component>tests</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="4521098" author="jmikola@gmail.com" created="Mon, 2 May 2022 21:21:51 +0000"  >&lt;p&gt;This will be addressed by &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-4374&quot; title=&quot;Only allow extra fields when matching root documents in unified spec tests&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-4374&quot;&gt;&lt;del&gt;CDRIVER-4374&lt;/del&gt;&lt;/a&gt;, so resolving as a duplicate.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="2037444">CDRIVER-4374</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="2037444">CDRIVER-4374</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="2020318">CDRIVER-4330</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="1903693">PHPLIB-748</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1903687">CDRIVER-4198</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="2019762">DRIVERS-2270</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|i09fro:</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>