<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:12:13 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-1341] Driver should validate BSON documents before insert and update</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-1341</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;Currently libmongoc&apos;s bulk write API does not validate BSON keys in documents when doing update/insert.&lt;/p&gt;

&lt;p&gt;No keys starting with &quot;$&quot; or containing &quot;.&quot;:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;mongoc_collection_insert - tested in test_insert&lt;/li&gt;
	&lt;li&gt;mongoc_collection_insert_bulk - test_insert_bulk&lt;/li&gt;
	&lt;li&gt;mongoc_bulk_operation_insert - test_insert_check_keys&lt;/li&gt;
	&lt;li&gt;mongoc_collection_save - test_save&lt;/li&gt;
	&lt;li&gt;&quot;document&quot; param to mongoc_bulk_operation_replace_one - test_replace_one_check_keys&lt;/li&gt;
	&lt;li&gt;&quot;document&quot; param to mongoc_bulk_operation_replace_one_with_opts - test_replace_one_with_opts_check_keys&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;All keys must start with &quot;$&quot;:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;&quot;document&quot; param to mongoc_bulk_operation_update - test_update_check_keys&lt;/li&gt;
	&lt;li&gt;&quot;document&quot; param to mongoc_bulk_operation_update_many_with_opts - test_update_many_with_opts_check_keys&lt;/li&gt;
	&lt;li&gt;&quot;document&quot; param to mongoc_bulk_operation_update_one - test_update_one_check_keys&lt;/li&gt;
	&lt;li&gt;&quot;document&quot; param to mongoc_bulk_operation_update_one_with_opts - test_update_one_with_opts_check_keys&lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment></environment>
        <key id="295884">CDRIVER-1341</key>
            <summary>Driver should validate BSON documents before insert and update</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</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="9">Done</resolution>
                                        <assignee username="jesse@mongodb.com">A. Jesse Jiryu Davis</assignee>
                                    <reporter username="rathi.gnanasekaran">Rathi Gnanasekaran</reporter>
                        <labels>
                    </labels>
                <created>Wed, 22 Jun 2016 17:31:34 +0000</created>
                <updated>Thu, 7 Sep 2017 18:13:35 +0000</updated>
                            <resolved>Fri, 20 Jan 2017 17:59:02 +0000</resolved>
                                                    <fixVersion>1.6.0</fixVersion>
                                                        <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="1566923" author="xgen-internal-githook" created="Mon, 8 May 2017 16:20:22 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;jmikola&apos;, u&apos;name&apos;: u&apos;Jeremy Mikola&apos;, u&apos;email&apos;: u&apos;jmikola@gmail.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/PHPC-579&quot; title=&quot;Throw exception for invalid BulkWrite::update() newObj argument&quot; class=&quot;issue-link&quot; data-issue-key=&quot;PHPC-579&quot;&gt;&lt;del&gt;PHPC-579&lt;/del&gt;&lt;/a&gt;: Regression test mixing update/replacement with BulkWrite::update()&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-1341&quot; title=&quot;Driver should validate BSON documents before insert and update&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-1341&quot;&gt;&lt;del&gt;CDRIVER-1341&lt;/del&gt;&lt;/a&gt; implemented client-side detection of the invalid newObj argument.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-php-driver/commit/e30a90668fb203daa0c066d0491ec36eaf34eef1&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-php-driver/commit/e30a90668fb203daa0c066d0491ec36eaf34eef1&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1481440" author="xgen-internal-githook" created="Fri, 20 Jan 2017 17:59:29 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;ajdavis&apos;, u&apos;name&apos;: u&apos;A. Jesse Jiryu Davis&apos;, u&apos;email&apos;: u&apos;jesse@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-1341&quot; title=&quot;Driver should validate BSON documents before insert and update&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-1341&quot;&gt;&lt;del&gt;CDRIVER-1341&lt;/del&gt;&lt;/a&gt; proper UTF-8 strings in tests&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/4382859be07d7a3ceb3f59755a86765ceea6601e&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/4382859be07d7a3ceb3f59755a86765ceea6601e&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1481439" author="xgen-internal-githook" created="Fri, 20 Jan 2017 17:59:28 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;ajdavis&apos;, u&apos;name&apos;: u&apos;A. Jesse Jiryu Davis&apos;, u&apos;email&apos;: u&apos;jesse@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-1341&quot; title=&quot;Driver should validate BSON documents before insert and update&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-1341&quot;&gt;&lt;del&gt;CDRIVER-1341&lt;/del&gt;&lt;/a&gt; validate keys for insert and update&lt;/p&gt;

&lt;p&gt;Keys in documents for insert, save, or replace must not contain &quot;.&quot; or start with &quot;$&quot;. Keys in documents for update must all start with &quot;$&quot;.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/4b37e655ac066514350d08c882d385c881c7a438&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/4b37e655ac066514350d08c882d385c881c7a438&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1411806" author="behackett" created="Tue, 18 Oct 2016 18:28:44 +0000"  >&lt;p&gt;No need to wait for a spec. &apos;$&apos; and &apos;.&apos; are invalid for insert and upsert. Make it so.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="293706">PHPC-712</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="293804">DRIVERS-308</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="264891">CDRIVER-1111</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="351232">CDRIVER-2017</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="333406">CDRIVER-1932</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="424368">CDRIVER-2265</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="351206">CDRIVER-2016</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="264906">PHPC-579</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </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|hst96n:</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>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="1481">C Driver 2017 1 - Jan 20, 2017</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>