<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:35:38 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>[CSHARP-40] Using a period in the database name causes safe mode to crash.</title>
                <link>https://jira.mongodb.org/browse/CSHARP-40</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;Using a database name with a period in it works for most operations but causes safe mode to throw an error.  If these are not valid database names reject them at connection time so the error is obvious.  E.g. this code fails:&lt;/p&gt;

&lt;p&gt;    mongo&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;The.DB&amp;quot;&amp;#93;&lt;/span&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;TheCollection&amp;quot;&amp;#93;&lt;/span&gt;.Insert(new Document&lt;br/&gt;
    {&lt;/p&gt;
        { &quot;ABC&quot;, 123 }
&lt;p&gt;    }, true);&lt;/p&gt;

&lt;p&gt;Either turning off safe more or removing the period from the database name cause the program to work correctly.  MongoDB logs this to the console:&lt;/p&gt;

&lt;p&gt;    connection accepted from 127.0.0.1:46634 #87&lt;br/&gt;
      Assertion failure toSend.data util\message.cpp 380&lt;br/&gt;
      AssertionException in connThread, closing client connection&lt;br/&gt;
    connection accepted from 127.0.0.1:46635 #88&lt;/p&gt;

&lt;p&gt;.Net dumps the following:&lt;/p&gt;

&lt;p&gt;Unhandled Exception: MongoDB.Driver.MongoCommException: Could not read data, communication failure ---&amp;gt; System.IO.EndOfStreamException: Unable to read beyond the end of the stream.&lt;br/&gt;
   at System.IO.BinaryReader.FillBuffer(Int32 numBytes)&lt;br/&gt;
   at System.IO.BinaryReader.ReadInt32()&lt;br/&gt;
   at MongoDB.Driver.Protocol.ReplyMessage.ReadHeader(BinaryReader reader)&lt;br/&gt;
   at MongoDB.Driver.Protocol.ReplyMessage.Read(Stream stream)&lt;br/&gt;
   at MongoDB.Driver.Connections.Connection.SendTwoWayMessage(IRequestMessage msg)&lt;br/&gt;
   at MongoDB.Driver.Cursor.RetrieveData()&lt;br/&gt;
   &amp;#8212; End of inner exception stack trace &amp;#8212;&lt;br/&gt;
   at MongoDB.Driver.Cursor.RetrieveData()&lt;br/&gt;
   at MongoDB.Driver.Cursor.&amp;lt;&amp;gt;c__Iterator0.MoveNext()&lt;br/&gt;
   at MongoDB.Driver.Collection.FindOne(Document spec)&lt;br/&gt;
   at MongoDB.Driver.Database.SendCommandCore(Document cmd)&lt;br/&gt;
   at MongoDB.Driver.Database.SendCommandCore(String command)&lt;br/&gt;
   at MongoDB.Driver.Collection.CheckError(Boolean safemode)&lt;/p&gt;</description>
                <environment>.Net Framework 4&lt;br/&gt;
Console Application</environment>
        <key id="11947">CSHARP-40</key>
            <summary>Using a period in the database name causes safe mode to crash.</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</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="9">Done</resolution>
                                        <assignee username="sam">Sam Corder</assignee>
                                    <reporter username="barrydahlberg">Barry Dahlberg</reporter>
                        <labels>
                    </labels>
                <created>Tue, 11 May 2010 21:42:23 +0000</created>
                <updated>Wed, 19 Oct 2016 14:16:04 +0000</updated>
                            <resolved>Thu, 11 Nov 2010 20:08:44 +0000</resolved>
                                                                    <component>SAMUS</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="20248" author="lanwin" created="Thu, 11 Nov 2010 20:08:44 +0000"  >&lt;p&gt;Please check if this still exists in our current master and report back here if yes &lt;a href=&quot;https://github.com/mongodb-csharp/mongodb-csharp/issues&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb-csharp/mongodb-csharp/issues&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="14198" author="lanwin" created="Wed, 12 May 2010 03:05:01 +0000"  >&lt;p&gt;Can you check if it works in for the current development version?&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://github.com/lanwin/mongodb-csharp/tree/typedcollections&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://github.com/lanwin/mongodb-csharp/tree/typedcollections&lt;/a&gt;&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_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrha1z:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>14428</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>