<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:58:54 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-3149] GridFS lacks a constructor that receives Database instead of DB</title>
                <link>https://jira.mongodb.org/browse/JAVA-3149</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;GridFS has a &lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/blob/19008193b1852054d6787850ee2cffbf7af1d817/driver-legacy/src/main/com/mongodb/gridfs/GridFS.java#L86&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;constructor that receives a `DB` object&lt;/a&gt;, however obtaining a DB object &lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/blob/19008193b1852054d6787850ee2cffbf7af1d817/driver-legacy/src/main/com/mongodb/Mongo.java#L502&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;`getDb()`is deprecated now&lt;/a&gt; in MongoClient `client.getDB(String name)`. So probably a new constructor or a viable alternative to instantiate GridFS is needed.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</description>
                <environment></environment>
        <key id="678780">JAVA-3149</key>
            <summary>GridFS lacks a constructor that receives Database instead of DB</summary>
                <type id="2" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14711&amp;avatarType=issuetype">New Feature</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="ross@mongodb.com">Ross Lawley</assignee>
                                    <reporter username="iemejia">Isma&#235;l Mejia</reporter>
                        <labels>
                    </labels>
                <created>Mon, 28 Jan 2019 13:50:27 +0000</created>
                <updated>Mon, 28 Jan 2019 14:00:05 +0000</updated>
                            <resolved>Mon, 28 Jan 2019 14:00:05 +0000</resolved>
                                    <version>3.9.1</version>
                                                    <component>GridFS</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="2129028" author="ross@10gen.com" created="Mon, 28 Jan 2019 14:00:05 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=iemejia&quot; class=&quot;user-hover&quot; rel=&quot;iemejia&quot;&gt;iemejia&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Thanks for the ticket. You&apos;re correct the legacy GridFS implementation is effectively deprecated due to it using the deprecated &lt;tt&gt;DB&lt;/tt&gt; class.&lt;/p&gt;

&lt;p&gt;Did you know there is a new &lt;a href=&quot;http://mongodb.github.io/mongo-java-driver/3.9/javadoc/com/mongodb/client/gridfs/package-summary.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;GridFS implementation&lt;/a&gt;? It follows the &lt;a href=&quot;https://github.com/mongodb/specifications/blob/master/source/gridfs/gridfs-spec.rst&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;GridFS Specification&lt;/a&gt; and uses the preferred &lt;tt&gt;MongoDatabase&lt;/tt&gt; class. See the &lt;a href=&quot;http://mongodb.github.io/mongo-java-driver/3.9/driver/tutorials/gridfs/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;GridFS documentation&lt;/a&gt; for more information.&lt;/p&gt;

&lt;p&gt;Ross&lt;br/&gt;
 &#160;&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                        <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10011"><![CDATA[Minor Change]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <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|huaa8v:</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>