<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:59:39 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-3452] java.lang.IllegalArgumentException: Invalid BSON field name</title>
                <link>https://jira.mongodb.org/browse/JAVA-3452</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;I am facing issue as &quot;java.lang.IllegalArgumentException: Invalid BSON field name center.alignment.threshold&quot;. center.alignment.threshold  is my key which contains &quot;dot&quot; in it. I have gone through few of the internet sites and got to know that the &quot;dot&quot; and &quot;doller&quot; sign is not supported in mongodb.  I have not got any resolution for this problem. &lt;/p&gt;

&lt;p&gt;Can you please just suggest the alternative here...&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Update&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;in scope of &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-3996&quot; title=&quot;Remove restrictions on using field names with dots and dollars&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-3996&quot;&gt;&lt;del&gt;JAVA-3996&lt;/del&gt;&lt;/a&gt;, the restriction on dots and dollars in field names has been removed from the driver. This was included in the 4.3.0 release of the driver (and all subsequent releases).&lt;/p&gt;</description>
                <environment></environment>
        <key id="946960">JAVA-3452</key>
            <summary>java.lang.IllegalArgumentException: Invalid BSON field name</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="13202">Works as Designed</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="potbhare.amol@gmail.com">Amol Potbhare</reporter>
                        <labels>
                    </labels>
                <created>Tue, 1 Oct 2019 12:45:09 +0000</created>
                <updated>Fri, 27 Oct 2023 13:21:02 +0000</updated>
                            <resolved>Tue, 1 Oct 2019 13:16:25 +0000</resolved>
                                                                    <component>BSON</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="5590078" author="jeff.yemin" created="Tue, 25 Jul 2023 15:35:26 +0000"  >&lt;p&gt;FYI: in scope of &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-3996&quot; title=&quot;Remove restrictions on using field names with dots and dollars&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-3996&quot;&gt;&lt;del&gt;JAVA-3996&lt;/del&gt;&lt;/a&gt;, the restriction on dots and dollars in field names has been removed from the driver.  This was included in the 4.3.0 release of the driver (and all subsequent releases).&lt;/p&gt;</comment>
                            <comment id="3012204" author="ciukstar@gmail.com" created="Sun, 29 Mar 2020 23:30:15 +0000"  >&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;From mongoDB reference manual: &quot;...Otherwise, starting in MongoDB 3.6, the server permits storage of field names that contain dots (i.e.&#160;&lt;tt&gt;.&lt;/tt&gt;) and dollar signs (i.e.&#160;&lt;tt&gt;$&lt;/tt&gt;)...&quot;&lt;/p&gt;

&lt;p&gt;See&#160;&lt;a href=&quot;https://docs.mongodb.com/manual/reference/limits/#Restrictions-on-Field-Names&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://docs.mongodb.com/manual/reference/limits/#Restrictions-on-Field-Names&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2442594" author="jeff.yemin" created="Tue, 1 Oct 2019 13:15:32 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=potbhare.amol%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;potbhare.amol@gmail.com&quot;&gt;potbhare.amol@gmail.com&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;At this point MongoDB drivers do not support dots in field names.  The only workaround is to replace the &quot;.&quot; character with a different character, e.g. &quot;_&quot;. The reasons are complicated, but generally have to do with the semantics of the &quot;.&quot; character in the MongoDB query language, where &quot;.&quot; is used to indicate a path into an embedded document. For example, the query filter&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;{&quot;a.b&quot; : 1}&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;matches this document&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;{&quot;a&quot; : {&quot;b&quot; : 1}}&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 does not match this document:&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;{&quot;a.b&quot;: 1}&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;
</comment>
                            <comment id="2442484" author="potbhare.amol@gmail.com" created="Tue, 1 Oct 2019 12:50:23 +0000"  >&lt;p&gt;Hi Team,&lt;/p&gt;

&lt;p&gt;I have recently started working on MognoDB and I loved using it. I am facing issue as &quot;java.lang.IllegalArgumentException: Invalid BSON field name center.alignment.threshold&quot;. center.alignment.threshold&#160; is my key which contains &quot;dot&quot; in it. I have gone through few of the internet sites and got to know that the &quot;dot&quot; and &quot;doller&quot; sign is not supported in mongodb.&#160; I have not got any resolution for this problem.&#160;&lt;/p&gt;

&lt;p&gt;Can you please just suggest the alternative here...&lt;/p&gt;

&lt;p&gt;Thanks in advance&#160;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="597468">DRIVERS-618</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1613151">JAVA-3996</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="414602">SERVER-30575</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|hvi6q7:</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>