<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:48:20 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>[CSHARP-4471] UpdateOneAsync with comment cause MongoCommandException</title>
                <link>https://jira.mongodb.org/browse/CSHARP-4471</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;h4&gt;&lt;a name=&quot;Summary&quot;&gt;&lt;/a&gt;Summary&lt;/h4&gt;

&lt;p&gt;await coll.UpdateOneAsync(p =&amp;gt; p.Name == &quot;username&quot;, update, new UpdateOptions() { Comment = &quot;abc&quot; &#160;});&lt;/p&gt;

&lt;p&gt;MongoDB.Driver.MongoCommandException : Command update failed: BSON field &apos;update.comment&apos; is an unknown field..&lt;/p&gt;
&lt;h4&gt;&lt;a name=&quot;Environment&quot;&gt;&lt;/a&gt;Environment&lt;/h4&gt;

&lt;p&gt;&lt;em&gt;MongoDB.Driver 2.18.0&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Dotnet 6&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Windows 11 x64&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Mongodb Server version 4.2&lt;/em&gt;&lt;/p&gt;</description>
                <environment></environment>
        <key id="2222388">CSHARP-4471</key>
            <summary>UpdateOneAsync with comment cause MongoCommandException</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="13202">Works as Designed</resolution>
                                        <assignee username="dmitry.lukyanov@mongodb.com">Dmitry Lukyanov</assignee>
                                    <reporter username="gw2008@gmail.com">p3 p3</reporter>
                        <labels>
                            <label>Bug</label>
                    </labels>
                <created>Tue, 3 Jan 2023 06:17:31 +0000</created>
                <updated>Fri, 27 Oct 2023 13:24:39 +0000</updated>
                            <resolved>Wed, 4 Jan 2023 14:29:12 +0000</resolved>
                                    <version>2.18.0</version>
                                                    <component>CRUD</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="5088997" author="gw2008@gmail.com" created="Wed, 4 Jan 2023 05:47:29 +0000"  >&lt;p&gt;Thanks for your reply, I upgraded to MongoDB version 4.4 and it solved my problem.&lt;/p&gt;</comment>
                            <comment id="5086203" author="dmitry.lukyanov" created="Tue, 3 Jan 2023 10:56:34 +0000"  >&lt;p&gt;Hey &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=gw2008%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;gw2008@gmail.com&quot;&gt;gw2008@gmail.com&lt;/a&gt; . This is expected behavior since server supports $comment for update operation starting from version 4.4. You can see it &lt;a href=&quot;https://github.com/mongodb/specifications/blob/master/source/crud/crud.rst#id23&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;here&lt;/a&gt; (search for UpdateOptions and see an xml comment for &quot;comment: Optional&amp;lt;any&amp;gt;&quot;)&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="2222387">CSHARP-4472</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|i17b5c:</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>