<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:20:44 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-4374] Only allow extra fields when matching root documents in unified spec tests</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-4374</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;In&#160;&lt;tt&gt;runner.c&lt;/tt&gt;,&#160;&lt;tt&gt;entity_map_match&lt;/tt&gt;&#160;is called with&#160;&lt;tt&gt;allow_extra=false&lt;/tt&gt;&#160;(&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/blob/1b9d5c179d2eefd21b055a41d6d5be24c992883f/src/libmongoc/tests/unified/result.c#L364&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;here&lt;/a&gt;), which seemingly 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;. This was responsible for a test failure I ran into while implementing&#160;&lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-4199&quot; title=&quot;Add support for the comment field to all helpers&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-4199&quot;&gt;&lt;del&gt;CDRIVER-4199&lt;/del&gt;&lt;/a&gt;&#160;(in&#160;&lt;tt&gt;find-comment.yml&lt;/tt&gt;&#160;the&#160;&lt;a href=&quot;https://github.com/mongodb/specifications/blob/master/source/crud/tests/unified/find-comment.yml#L41&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;test only matches&lt;/a&gt;&#160;the&#160;&lt;tt&gt;_id&lt;/tt&gt;&#160;field of a selected document, despite it also containing an&#160;&lt;tt&gt;x&lt;/tt&gt;&#160;field).&lt;/p&gt;

&lt;p&gt;This is somewhat related to &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-4329&quot; title=&quot;Do not permit extra fields when matching embedded documents in unified spec tests&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-4329&quot;&gt;&lt;del&gt;CDRIVER-4329&lt;/del&gt;&lt;/a&gt;, although that had to do APM command/reply assertions and passing &lt;tt&gt;allow_extra=true&lt;/tt&gt; unnecessarily when matching nested fields.&lt;/p&gt;</description>
                <environment></environment>
        <key id="2037444">CDRIVER-4374</key>
            <summary>Only allow extra fields when matching root 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="13201">Fixed</resolution>
                                        <assignee username="jmikola@mongodb.com">Jeremy Mikola</assignee>
                                    <reporter username="jmikola@mongodb.com">Jeremy Mikola</reporter>
                        <labels>
                    </labels>
                <created>Mon, 2 May 2022 14:29:33 +0000</created>
                <updated>Sat, 28 Oct 2023 11:28:06 +0000</updated>
                            <resolved>Mon, 16 May 2022 17:04:38 +0000</resolved>
                                                    <fixVersion>1.22.0</fixVersion>
                    <fixVersion>1.22.0-beta0</fixVersion>
                                    <component>libmongoc</component>
                    <component>tests</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="4550563" author="xgen-internal-githook" created="Mon, 16 May 2022 17:04:24 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Jeremy Mikola&apos;, &apos;email&apos;: &apos;jmikola@gmail.com&apos;, &apos;username&apos;: &apos;jmikola&apos;}
&lt;p&gt;Message: &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; only allow extra fields when matching root docs&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/9ac26895637ada61305e430dcdefae7ad1ebf052&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/9ac26895637ada61305e430dcdefae7ad1ebf052&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4522475" author="jmikola@gmail.com" created="Tue, 3 May 2022 14:06:45 +0000"  >&lt;p&gt;&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/pull/982&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/pull/982&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="2020293">CDRIVER-4329</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="2020293">CDRIVER-4329</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1903830">CDRIVER-4199</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|i0c874:</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>