<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:51:51 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>[JAVA-253] update not working correctly - or doc bug</title>
                <link>https://jira.mongodb.org/browse/JAVA-253</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>
&lt;p&gt;I&apos;m not 100% sure this is a Java bug, it may be a server or doc bug.&lt;/p&gt;

&lt;p&gt;The following code fails to insert an object. If you change the last param (in the update method - multi = true) to false then this works as expected. &lt;/p&gt;

&lt;p&gt;If this is the expected behavior, let me know and I will update the Javadoc comment for the method.&lt;/p&gt;

&lt;p&gt;        final ObjectId OBJ_ID = new ObjectId(&quot;4d09359b1cc223ebd7f9797f&quot;);&lt;/p&gt;

&lt;p&gt;        final BasicDBObject version = new BasicDBObject(ID, OBJ_ID);&lt;br/&gt;
        version.put(&quot;prodVersion&quot;, pProdVersion);&lt;br/&gt;
        version.put(&quot;devVersion&quot;, pDevVersion);&lt;/p&gt;

&lt;p&gt;        version.put(&quot;modified&quot;, now());&lt;/p&gt;

&lt;p&gt;        collection.update(new BasicDBObject(ID, OBJ_ID), version, true, true);&lt;/p&gt;</description>
                <environment></environment>
        <key id="14193">JAVA-253</key>
            <summary>update not working correctly - or doc bug</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="9">Done</resolution>
                                        <assignee username="eliot">Eliot Horowitz</assignee>
                                    <reporter username="rn@deftlabs.com">Ryan Nitz</reporter>
                        <labels>
                    </labels>
                <created>Mon, 10 Jan 2011 19:18:48 +0000</created>
                <updated>Thu, 17 Mar 2011 19:13:54 +0000</updated>
                            <resolved>Wed, 12 Jan 2011 04:00:28 +0000</resolved>
                                    <version>2.4</version>
                                                    <component>API</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="22290" author="rgnitz" created="Wed, 12 Jan 2011 16:03:40 +0000"  >&lt;p&gt;Great... I&apos;ll update the javadocs to clarify.&lt;/p&gt;</comment>
                            <comment id="22278" author="eliot" created="Wed, 12 Jan 2011 04:00:28 +0000"  >&lt;p&gt;You&apos;d get an error with that if you were using safe mode&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_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrhchb:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>14822</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>