<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:52:07 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-369] Collection#save should also accept BSONObject (not just DBObject)</title>
                <link>https://jira.mongodb.org/browse/JAVA-369</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;I am working with BasicBSONObject (received from code that does not depend on MongoDB), and would like to save them to the database.&lt;/p&gt;

&lt;p&gt;Unfortunately, &quot;save&quot; and friends only accept DBObject, so that I have to copy all the data into a BasicDBObject first.&lt;/p&gt;

&lt;p&gt;Is it really necessary to only accept DBObjects? From what I can see, the only difference between the two is that DBObject has an &quot;incomplete&quot; flag, and the API checks it for you and prevents accidental upserts using incomplete objects. Can we accept other types of BSONObject and just treat them as &quot;complete&quot;?&lt;/p&gt;</description>
                <environment></environment>
        <key id="17841">JAVA-369</key>
            <summary>Collection#save should also accept BSONObject (not just DBObject)</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</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="2">Won&apos;t Fix</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="thiloplanz">Thilo Planz</reporter>
                        <labels>
                            <label>bson</label>
                    </labels>
                <created>Fri, 3 Jun 2011 04:15:03 +0000</created>
                <updated>Fri, 24 Jan 2014 03:48:17 +0000</updated>
                            <resolved>Fri, 24 Jan 2014 03:48:17 +0000</resolved>
                                    <version>2.6.1</version>
                                                    <component>API</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="487030" author="jeff.yemin" created="Fri, 24 Jan 2014 03:48:17 +0000"  >&lt;p&gt;While this seems like a harmless change, it would break binary compatibility, and we&apos;re not going to do that.&lt;/p&gt;

&lt;p&gt;In 3.0, we&apos;re going to introduce a new collection class that in generic, so you will be able to make it take/return anything, so long as there is a encoder/decoder for it.&lt;/p&gt;</comment>
                            <comment id="36299" author="thiloplanz" created="Mon, 6 Jun 2011 08:22:07 +0000"  >&lt;p&gt;This probably applies even more for the &quot;find&quot; family of methods, where the &quot;incomplete object&quot; flag seems not be relevant.&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|hrhc0f:</customfieldvalue>

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