<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:55:02 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-1605] Remove Mongo#getVersion</title>
                <link>https://jira.mongodb.org/browse/JAVA-1605</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;We should remove Mongo#getVersion in 3.0 after deprecating in 2.13.  This is not a common practice in Java libraries, and it complicates the build process. &lt;/p&gt;</description>
                <environment></environment>
        <key id="176514">JAVA-1605</key>
            <summary>Remove Mongo#getVersion</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="jeff.yemin@mongodb.com">Jeffrey Yemin</assignee>
                                    <reporter username="jeff.yemin@mongodb.com">Jeffrey Yemin</reporter>
                        <labels>
                    </labels>
                <created>Tue, 30 Dec 2014 22:43:08 +0000</created>
                <updated>Tue, 7 Jul 2015 16:47:52 +0000</updated>
                            <resolved>Mon, 5 Jan 2015 17:23:13 +0000</resolved>
                                                    <fixVersion>3.0.0</fixVersion>
                                    <component>API</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="959660" author="dmiperl" created="Tue, 7 Jul 2015 16:47:06 +0000"  >&lt;p&gt;Jeff,&lt;br/&gt;
Sure, we could probably find ways to figure out the driver version.. but IMHO, it is rather strange that database driver doesn&apos;t come with the one. This is particularly important because driver in v3 sprang into many jars. Again, for user (like myself) we could probably find a way to deal with this, but I don&apos;t think that database driver for such a sensitive and proprietary product like MongoDB  should be so &quot;liberal&quot; with versions. For example, our product comes with your driver but users pick their own MongoDB databases. Users can and sometimes do replace drivers on their own. Users get into problems. And one of the ways to start looking into problems is to know which version of software is being used. So, what we have now with v2 of the driver is a complete dump of what database, driver, OS and architecture are we looking at. In v3 driver version is gone. I&apos;m not saying it&apos;s the end of the world, I am just telling you my use case &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.mongodb.org/images/icons/emoticons/smile.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;

&lt;p&gt;(by the way, awesome work on driver v3, we migrated from v2 without much pain)&lt;/p&gt;</comment>
                            <comment id="959611" author="jeff.yemin" created="Tue, 7 Jul 2015 16:19:27 +0000"  >&lt;p&gt;Hi Dima,&lt;/p&gt;

&lt;p&gt;We ripped this out for a number of reasons:&lt;/p&gt;

&lt;ol&gt;
	&lt;li&gt;Most Java software libraries that I&apos;m aware of don&apos;t expose such a property&lt;/li&gt;
	&lt;li&gt;As of the 3.0 release, the driver has been split out into multiple jar files  (mongodb-driver, mongodb-driver-core, bson, etc.), so a single version number for the MongoClient may be misleading&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;As you ship the driver as part of the installation of your own software product, could you not give each version of the installation its own number, and derive the driver version from that (e.g version 1.4.3 of your software ships with version 3.0.2 of the Java driver)?&lt;/p&gt;</comment>
                            <comment id="959575" author="dmiperl" created="Tue, 7 Jul 2015 15:56:19 +0000"  >&lt;p&gt;Thank you Jeff, &lt;br/&gt;
This is what I was looking for - an alternative way. It&apos;s needed for support tasks when you must know what software versions are running at end user machine. We log (or display in about pages) the driver version, database version, OS, architecture, etc. In my particular case, we ship mongodb java driver as part of the installation. Having to know which of the drivers are being currently used is very important for support. Often users replace drivers themselves.. I don&apos;t need it to base application logic on driver version, I need it as an information only. The only choice I see so far is to look at a file name in the class path.. I&apos;m not sure it&apos;s the best choice.&lt;/p&gt;</comment>
                            <comment id="959348" author="jeff.yemin" created="Tue, 7 Jul 2015 13:13:11 +0000"  >&lt;p&gt;Hi Dima,&lt;/p&gt;

&lt;p&gt;Maybe if you explain how you&apos;re using the driver version in your code, we can suggest an alternative way of accomplishing your goal.&lt;/p&gt;</comment>
                            <comment id="959123" author="dmiperl" created="Tue, 7 Jul 2015 04:58:58 +0000"  >&lt;p&gt;But what is the replacement of this? How do we to know the version of driver used with the application hosting the driver?&lt;/p&gt;</comment>
                            <comment id="869363" author="jeff.yemin" created="Tue, 31 Mar 2015 20:09:34 +0000"  >&lt;p&gt;Closing all resolved 3.0.0 issues, as 3.0.0 has been tagged and released.&lt;/p&gt;</comment>
                            <comment id="818057" author="xgen-internal-githook" created="Fri, 30 Jan 2015 18:46:28 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;jyemin&apos;, u&apos;name&apos;: u&apos;Jeff Yemin&apos;, u&apos;email&apos;: u&apos;jeff.yemin@10gen.com&apos;}
&lt;p&gt;Message: Removed Mongo.getVersion() method, which will be deprecated in the 2.13 release.&lt;/p&gt;

&lt;p&gt; &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-1605&quot; title=&quot;Remove Mongo#getVersion&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-1605&quot;&gt;&lt;del&gt;JAVA-1605&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/b72f4c0950487e34e5583b5d8eecfc209fe820b7&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/b72f4c0950487e34e5583b5d8eecfc209fe820b7&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="797206" author="xgen-internal-githook" created="Mon, 5 Jan 2015 17:21:44 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;jyemin&apos;, u&apos;name&apos;: u&apos;Jeff Yemin&apos;, u&apos;email&apos;: u&apos;jeff.yemin@10gen.com&apos;}
&lt;p&gt;Message: Removed Mongo.getVersion() method, which will be deprecated in the 2.13 release.&lt;/p&gt;

&lt;p&gt; &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-1605&quot; title=&quot;Remove Mongo#getVersion&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-1605&quot;&gt;&lt;del&gt;JAVA-1605&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
Branch: 3.0.x&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/b72f4c0950487e34e5583b5d8eecfc209fe820b7&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/b72f4c0950487e34e5583b5d8eecfc209fe820b7&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                            <outwardlinks description="depends on">
                                        <issuelink>
            <issuekey id="176518">JAVA-1606</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|hs4jev:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>151447</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="351">Java Sprint 12</customfieldvalue>

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