<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:56:53 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-2308] Driver version check fails when there is another version.properties file in the classpath</title>
                <link>https://jira.mongodb.org/browse/JAVA-2308</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;Version: 3.4.0.SNAPSHOT&lt;br/&gt;
 ClientMetadataHelper tries to get DriverVersion using &lt;/p&gt;

&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;Class&amp;lt;InternalStreamConnectionInitializer&amp;gt; clazz = InternalStreamConnectionInitializer.class;&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;URL versionPropertiesFileURL = clazz.getResource(&quot;/version.properties&quot;);&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;

&lt;p&gt;but there is another &quot;version.properties&quot; file in classpath - it leads to IllegalArgumentException(&quot;Value can not be null&quot;) in BsonString constructor.&lt;/p&gt;

&lt;p&gt;This prevents any connections from being established to the MongoDB server.&lt;/p&gt;
</description>
                <environment></environment>
        <key id="315833">JAVA-2308</key>
            <summary>Driver version check fails when there is another version.properties file in the classpath</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="jeff.yemin@mongodb.com">Jeffrey Yemin</assignee>
                                    <reporter username="vladimir.dolzhenko@ihsmarkit.com">Vladimir Dolzhenko</reporter>
                        <labels>
                    </labels>
                <created>Tue, 13 Sep 2016 11:54:17 +0000</created>
                <updated>Thu, 26 Dec 2019 19:56:55 +0000</updated>
                            <resolved>Wed, 14 Sep 2016 18:26:20 +0000</resolved>
                                                    <fixVersion>3.4.0</fixVersion>
                                    <component>Connection Management</component>
                                        <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="1385174" author="xgen-internal-githook" created="Thu, 15 Sep 2016 13:24:54 +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: &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-2308&quot; title=&quot;Driver version check fails when there is another version.properties file in the classpath&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-2308&quot;&gt;&lt;del&gt;JAVA-2308&lt;/del&gt;&lt;/a&gt;: trim driver version string in Gradle build file&lt;/p&gt;

&lt;p&gt;   Fixes issue where the manifest can not be loaded by older version of Java&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/1fe1848cebb044669a83e4f9f04b9ec0f7e74a56&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/1fe1848cebb044669a83e4f9f04b9ec0f7e74a56&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1385140" author="xgen-internal-githook" created="Thu, 15 Sep 2016 12:18:49 +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: &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-2308&quot; title=&quot;Driver version check fails when there is another version.properties file in the classpath&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-2308&quot;&gt;&lt;del&gt;JAVA-2308&lt;/del&gt;&lt;/a&gt;: Improve exception handling getting the driver version from the manifest&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/b78aa3f298baa12954987338afdb85415ccefbfc&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/b78aa3f298baa12954987338afdb85415ccefbfc&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1384545" author="xgen-internal-githook" created="Wed, 14 Sep 2016 18:22:56 +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: &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-2308&quot; title=&quot;Driver version check fails when there is another version.properties file in the classpath&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-2308&quot;&gt;&lt;del&gt;JAVA-2308&lt;/del&gt;&lt;/a&gt;: Make sure that getting driver version won&apos;t fail with any exception&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/b1ea80b6708ca1d54021be798fde7e6b70257d4a&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/b1ea80b6708ca1d54021be798fde7e6b70257d4a&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1384544" author="xgen-internal-githook" created="Wed, 14 Sep 2016 18:22:55 +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: &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-2308&quot; title=&quot;Driver version check fails when there is another version.properties file in the classpath&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-2308&quot;&gt;&lt;del&gt;JAVA-2308&lt;/del&gt;&lt;/a&gt;: Remove un-used code&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/b65604872886a413fc79dc1e2be2e5960467a5bc&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/b65604872886a413fc79dc1e2be2e5960467a5bc&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1384543" author="xgen-internal-githook" created="Wed, 14 Sep 2016 18:22:53 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;name&apos;: u&apos;Vladimir Dolzhenko&apos;, u&apos;email&apos;: u&apos;vladimir.dolzhenko@markit.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-2308&quot; title=&quot;Driver version check fails when there is another version.properties file in the classpath&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-2308&quot;&gt;&lt;del&gt;JAVA-2308&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
unable to start MongoClient&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/e670a674c7b1af0f179f3e398784b95d7a5c3344&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/e670a674c7b1af0f179f3e398784b95d7a5c3344&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1383130" author="vladimir.dolzhenko@ihsmarkit.com" created="Tue, 13 Sep 2016 13:44:00 +0000"  >&lt;p&gt;Thanks @ross.lawley - I proposed another - much proper fix for the issue&lt;/p&gt;</comment>
                            <comment id="1383074" author="ross@10gen.com" created="Tue, 13 Sep 2016 12:48:16 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=vladimir.dolzhenko%40ihsmarkit.com&quot; class=&quot;user-hover&quot; rel=&quot;vladimir.dolzhenko@ihsmarkit.com&quot;&gt;vladimir.dolzhenko@ihsmarkit.com&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Many thanks for the ticket and the pull request. The client handshake code is still in active development. We&apos;ll review your suggested fix and update this ticket once its completed.&lt;/p&gt;

&lt;p&gt;Ross&lt;/p&gt;</comment>
                            <comment id="1383064" author="vladimir.dolzhenko@ihsmarkit.com" created="Tue, 13 Sep 2016 12:31:40 +0000"  >&lt;p&gt;the proper solution has to read value from MANIFEST.MF - but the current manifest doesn&apos;t have a version&lt;/p&gt;

&lt;p&gt;so - smth like &lt;/p&gt;
&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;((JarURLConnection)new URL(&quot;jar:file:&quot; + InternalStreamConnectionInitializer.class.getProtectionDomain().getCodeSource().getLocation().getPath() + &quot;!/&quot;).openConnection()).getManifest().getAttributes(&quot;Version&quot;)&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;

&lt;p&gt;but it means that build process have to write &lt;b&gt;Version&lt;/b&gt; attribute to manifest&lt;/p&gt;</comment>
                            <comment id="1383052" author="vladimir.dolzhenko@ihsmarkit.com" created="Tue, 13 Sep 2016 12:05:18 +0000"  >&lt;p&gt;git pull request &lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/pull/374&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/pull/374&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="305175">JAVA-2266</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|hspffr:</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>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="1200">JVM Sprint 35</customfieldvalue>

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