<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:56:12 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>[SERVER-1149] don&apos;t allow dbs with different casing (WAS: Using not existing Database in shell client should not stop the database server)</title>
                <link>https://jira.mongodb.org/browse/SERVER-1149</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;We have a database called &quot;Test&quot; in our server. It happens often that a developer type &quot;test&quot; instead and try to use that database. In this case the server stops because he can not find the database files for &quot;test&quot;.&lt;/p&gt;

&lt;p&gt;This should not be happen, because someone could cause a stop of a production server this way.&lt;/p&gt;</description>
                <environment>Windows 2008 Server R2 x64</environment>
        <key id="12018">SERVER-1149</key>
            <summary>don&apos;t allow dbs with different casing (WAS: Using not existing Database in shell client should not stop the database server)</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="2" iconUrl="https://jira.mongodb.org/images/icons/priorities/critical.svg">Critical - P2</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="eliot">Eliot Horowitz</assignee>
                                    <reporter username="lanwin">Steve Wagner</reporter>
                        <labels>
                    </labels>
                <created>Tue, 25 May 2010 06:52:35 +0000</created>
                <updated>Tue, 12 Jul 2016 00:28:25 +0000</updated>
                            <resolved>Tue, 15 Jun 2010 02:49:16 +0000</resolved>
                                    <version>1.4.2</version>
                                    <fixVersion>1.5.3</fixVersion>
                                    <component>Shell</component>
                                        <votes>1</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="14807" author="auto" created="Tue, 15 Jun 2010 21:29:31 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;login&apos;: &apos;erh&apos;, &apos;name&apos;: &apos;Eliot Horowitz&apos;, &apos;email&apos;: &apos;eliot@10gen.com&apos;}
&lt;p&gt;Message: test i forgot to commit for &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-1149&quot; title=&quot;don&amp;#39;t allow dbs with different casing (WAS: Using not existing Database in shell client should not stop the database server)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-1149&quot;&gt;&lt;del&gt;SERVER-1149&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;http://github.com/mongodb/mongo/commit/d3481595d2fedb3774574387c06ab70679aae447&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://github.com/mongodb/mongo/commit/d3481595d2fedb3774574387c06ab70679aae447&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="14775" author="eliot" created="Tue, 15 Jun 2010 08:44:26 +0000"  >&lt;p&gt;probably not - certainly not yet at least.&lt;/p&gt;

&lt;p&gt;needs some real world testing&lt;/p&gt;</comment>
                            <comment id="14774" author="zippy1981" created="Tue, 15 Jun 2010 08:42:11 +0000"  >&lt;p&gt;Can this be back ported  to 1.4/4?&lt;/p&gt;

&lt;p&gt;I will test this today with and without --directoryperdb&lt;/p&gt;</comment>
                            <comment id="14771" author="auto" created="Tue, 15 Jun 2010 02:49:19 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;login&apos;: &apos;erh&apos;, &apos;name&apos;: &apos;Eliot Horowitz&apos;, &apos;email&apos;: &apos;eliot@10gen.com&apos;}
&lt;p&gt;Message: don&apos;t allow databases with the same name and different casing &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-1149&quot; title=&quot;don&amp;#39;t allow dbs with different casing (WAS: Using not existing Database in shell client should not stop the database server)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-1149&quot;&gt;&lt;del&gt;SERVER-1149&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;http://github.com/mongodb/mongo/commit/1113a12a59214ae0ae624c00af51a64609de2913&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://github.com/mongodb/mongo/commit/1113a12a59214ae0ae624c00af51a64609de2913&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="14768" author="eliot" created="Tue, 15 Jun 2010 00:30:23 +0000"  >&lt;p&gt;This will be fixed in 1.5.3.&lt;/p&gt;</comment>
                            <comment id="14767" author="zippy1981" created="Tue, 15 Jun 2010 00:28:17 +0000"  >&lt;p&gt;I took a quick look at this. Threw some more logging in the code for increased visibility. This annoys me as a windows user too.&lt;/p&gt;

&lt;p&gt;Is this for sure to be fixed in 1.53? If I were to provide a patch with increased logging that made the cause of the issue more apparent would that speed up resolution.&lt;/p&gt;

&lt;p&gt;Obviously if I manage to actually fix the issue I&apos;ll submit that too, but I have a feeling whatever solution I submitted would be sub optimal.&lt;/p&gt;

&lt;p&gt;Finally on a more specific note, If I made a class that inherited from the HashTable template class that held the collections, made it hole keys of std::string, and added a case insinsitive find called ifind() as part of this solution would that be acceptable? Not sure if that will solve the problem yet, but it might be part of a solution.&lt;/p&gt;</comment>
                            <comment id="14721" author="lanwin" created="Mon, 14 Jun 2010 08:51:07 +0000"  >&lt;p&gt;Any progress on that? &lt;/p&gt;

&lt;p&gt;I can not sell MongoDB to my manager if a developer can kill the production database with only one wrong cased char.&lt;/p&gt;</comment>
                            <comment id="14427" author="lanwin" created="Tue, 25 May 2010 09:59:11 +0000"  >&lt;p&gt;If the Database name is &quot;Test&quot; and i run that on the client:&lt;/p&gt;

&lt;p&gt;use test&lt;br/&gt;
db.test.find()&lt;/p&gt;

&lt;p&gt;The server exits with the following message:&lt;/p&gt;

&lt;p&gt;Tue May 25 15:50:22 end connection 10.10.11.167:51991&lt;br/&gt;
Tue May 25 15:50:55 connection accepted from 10.10.11.221:19998 #157&lt;br/&gt;
Create/OpenFile failed C:/mongodb/data/test.ns 0&lt;br/&gt;
Tue May 25 15:51:02   couldn&apos;t open file C:/mongodb/data/test.ns terminating&lt;br/&gt;
Tue May 25 15:51:02  dbexit:&lt;br/&gt;
Tue May 25 15:51:02      shutdown: going to close listening sockets...&lt;br/&gt;
Tue May 25 15:51:02      going to close listening socket: 172&lt;br/&gt;
Tue May 25 15:51:02 Listener: accept() returns -1 errno:0 No error&lt;br/&gt;
Tue May 25 15:51:02 got request after shutdown()&lt;br/&gt;
Tue May 25 15:51:02      going to close listening socket: 188&lt;br/&gt;
Tue May 25 15:51:02 MiniWebServer: accept() returns -1 errno:0 No error&lt;br/&gt;
Tue May 25 15:51:02      shutdown: going to flush oplog...&lt;br/&gt;
Tue May 25 15:51:02      shutdown: going to close sockets...&lt;br/&gt;
Tue May 25 15:51:02      shutdown: waiting for fs preallocator...&lt;br/&gt;
Tue May 25 15:51:02      shutdown: closing all files...&lt;br/&gt;
Tue May 25 15:51:02      closeAllFiles() finished&lt;br/&gt;
Tue May 25 15:51:02  dbexit: really exiting now&lt;/p&gt;

&lt;p&gt;Used filesystem is NTFS.&lt;/p&gt;</comment>
                            <comment id="14426" author="eliot" created="Tue, 25 May 2010 09:45:34 +0000"  >&lt;p&gt;Also - what file system are you using?&lt;/p&gt;</comment>
                            <comment id="14425" author="eliot" created="Tue, 25 May 2010 09:45:10 +0000"  >&lt;p&gt;What do you mean &quot;stop the database&quot;&lt;br/&gt;
In general this isn&apos;t the case.&lt;br/&gt;
Can you attach the db logs?&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>10.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 25 May 2010 09:45:10 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        13 years, 36 weeks, 1 day ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>ramon.fernandez@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            13 years, 36 weeks, 1 day ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10000" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Old_Backport</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10000"><![CDATA[No]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>auto</customfieldvalue>
            <customfieldvalue>eliot</customfieldvalue>
            <customfieldvalue>zippy1981</customfieldvalue>
            <customfieldvalue>lanwin</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrpm7j:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrik1z:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>21901</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|ht0iwv:</customfieldvalue>

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