<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 09:04:01 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-5213] Invalid automatic module name for mongo-scala-bson and mongo-scala-driver</title>
                <link>https://jira.mongodb.org/browse/JAVA-5213</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;h4&gt;&lt;a name=&quot;Summary&quot;&gt;&lt;/a&gt;Summary&lt;/h4&gt;

&lt;p&gt;&lt;em&gt;&lt;a href=&quot;https://mvnrepository.com/artifact/org.mongodb.scala/mongo-scala-bson_2.13/4.11.0&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;mongo-scala-bson&lt;/a&gt; and &lt;a href=&quot;https://mvnrepository.com/artifact/org.mongodb.scala/mongo-scala-driver_2.13/4.11.0&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;mongo-scala-driver&lt;/a&gt; have invalid characters in the &quot;Automatic-Module-Name&quot; field of their META-INF/MANIFEST.MF files.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;This causes some builds to fail with the error &quot;cannot determine module name&quot; . This happens on a Bazel project using JDK 17.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;This is present in the latest version of these two libraries, i.e. version 4.11.0.&lt;/p&gt;
&lt;h4&gt;&lt;a name=&quot;HowtoReproduce&quot;&gt;&lt;/a&gt;How to Reproduce&lt;/h4&gt;
&lt;ol&gt;
	&lt;li&gt;&lt;em&gt;Download the jar file for mongo-scala-driver or mongo-scala-bson.&lt;/em&gt;&lt;/li&gt;
	&lt;li&gt;&lt;em&gt;Extract the jar file e.g.:&lt;/em&gt;&lt;br/&gt;
&lt;em&gt;unzip ./mongo-scala-bson_2.13-4.11.0.jar&lt;/em&gt;&lt;/li&gt;
	&lt;li&gt;&lt;em&gt;View MANIFEST.MF:&lt;/em&gt;&lt;br/&gt;
&lt;em&gt;cat META-INF/MANIFEST.MF&lt;/em&gt;&lt;/li&gt;
	&lt;li&gt;&lt;em&gt;Look at the content of the&lt;/em&gt; &lt;em&gt;Automatic-Module-Name field&lt;/em&gt; &lt;em&gt;e.g.&lt;/em&gt;&lt;br/&gt;
&lt;em&gt;Automatic-Module-Name: org.mongodb.scala.mongo-scala-bson&lt;/em&gt;&lt;br/&gt;
and&lt;br/&gt;
Automatic-Module-Name: org.mongodb.scala.mongo-scala-driver&lt;/li&gt;
	&lt;li&gt;Notice the invalid &quot;-&quot; character in the module name.&lt;/li&gt;
&lt;/ol&gt;


&lt;h4&gt;&lt;a name=&quot;AdditionalBackground&quot;&gt;&lt;/a&gt;Additional Background&lt;/h4&gt;

&lt;p&gt;&lt;em&gt;The character &quot;-&quot; is not valid. For a description of the valid characters see:&lt;/em&gt;&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;&lt;em&gt;&lt;a href=&quot;https://docs.oracle.com/javase/tutorial/java/package/namingpkgs.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://docs.oracle.com/javase/tutorial/java/package/namingpkgs.html&lt;/a&gt;&lt;/em&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;https://docs.oracle.com/javase%2F9%2Fdocs%2Fapi%2F%2F/java/lang/module/ModuleFinder.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://docs.oracle.com/javase%2F9%2Fdocs%2Fapi%2F%2F/java/lang/module/ModuleFinder.html&lt;/a&gt;&#160;&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;_Similar issue: &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-5202_&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://jira.mongodb.org/browse/JAVA-5202_&lt;/a&gt;&#160;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Suggested fix: replace &quot;-&quot; with a dot: &quot;.&quot;.&lt;/em&gt;&lt;/p&gt;</description>
                <environment></environment>
        <key id="2480429">JAVA-5213</key>
            <summary>Invalid automatic module name for mongo-scala-bson and mongo-scala-driver</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="13201">Fixed</resolution>
                                        <assignee username="slav.babanin@mongodb.com">Slav Babanin</assignee>
                                    <reporter username="fernandoacorreia@gmail.com">Fernando Correia</reporter>
                        <labels>
                    </labels>
                <created>Fri, 20 Oct 2023 23:11:03 +0000</created>
                <updated>Wed, 10 Jan 2024 18:35:30 +0000</updated>
                            <resolved>Fri, 27 Oct 2023 23:58:54 +0000</resolved>
                                                    <fixVersion>4.11.1</fixVersion>
                                    <component>Build</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="5817828" author="JIRAUSER1273474" created="Fri, 27 Oct 2023 23:56:25 +0000"  >&lt;p&gt;Thank you &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=fernandoacorreia%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;fernandoacorreia@gmail.com&quot;&gt;fernandoacorreia@gmail.com&lt;/a&gt; for reporting this issue. The fix will be included in the 4.11.1 patch release.&lt;/p&gt;</comment>
                            <comment id="5808385" author="xgen-internal-githook" created="Thu, 26 Oct 2023 07:44:07 +0000"  >&lt;p&gt;Author: &lt;/p&gt;
{&apos;name&apos;: &apos;Viacheslav Babanin&apos;, &apos;email&apos;: &apos;frest0512@gmail.com&apos;, &apos;username&apos;: &apos;vbabanin&apos;}
&lt;p&gt;Message: Add explicit automatic module name configuration. (#1232)&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-5213&quot; title=&quot;Invalid automatic module name for mongo-scala-bson and mongo-scala-driver&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-5213&quot;&gt;&lt;del&gt;JAVA-5213&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-5202&quot; title=&quot;Automatic module name was broken for Kotlin modules&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-5202&quot;&gt;&lt;del&gt;JAVA-5202&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/aa4c0f1344ad1e003555d4d4dea7ad1a94460aee&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/aa4c0f1344ad1e003555d4d4dea7ad1a94460aee&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="5800182" author="JIRAUSER1275556" created="Mon, 23 Oct 2023 20:37:28 +0000"  >&lt;p&gt;I found an additional reference about what valid module names are:&lt;/p&gt;

&lt;p&gt;&amp;gt; &#160;A module name consists of one or more Java identifiers (&lt;a href=&quot;https://docs.oracle.com/javase/specs/jls/se17/html/jls-3.html#jls-3.8&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;&#167;3.8&lt;/a&gt;) separated by &quot;&lt;tt&gt;.&lt;/tt&gt;&quot; tokens.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://docs.oracle.com/javase/specs/jls/se17/html/jls-7.html#jls-7.7&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://docs.oracle.com/javase/specs/jls/se17/html/jls-7.html#jls-7.7&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="5796379" author="dbeng-pm-bot" created="Fri, 20 Oct 2023 23:11:05 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=fernandoacorreia%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;fernandoacorreia@gmail.com&quot;&gt;fernandoacorreia@gmail.com&lt;/a&gt;, thank you for reporting this issue! The team will look into it and get back to you soon. &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_10257" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Documentation Changes</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="11861"><![CDATA[Not Needed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_14266" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Documentation Changes Summary</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>&lt;p&gt;1. What would you like to communicate to the user about this feature?&lt;br/&gt;
2. Would you like the user to see examples of the syntax and/or executable code and its output?&lt;br/&gt;
3. Which versions of the driver/connector does this apply to?&lt;/p&gt;</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|i1vlh2:r</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>