[SERVER-2314] Mongo should not allow the creation of empty name database nor collecttion Created: 31/Dec/10  Updated: 12/Jul/16  Resolved: 31/Dec/10

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 1.6.5
Fix Version/s: 1.7.5

Type: Bug Priority: Minor - P4
Reporter: Luc Suryo Assignee: Eliot Horowitz (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Linux, mongo 1.6.5


Backwards Compatibility: Minor Change
Operating System: ALL
Participants:

 Description   

ref to
http://jira.mongodb.org/browse/PHP-186
http://jira.mongodb.org/browse/SERVER-2051

The problem is if you do have a DB or collection with no name mongodump will work just fine HOWEVER
you will not be able to restore with mongorestort, it will bail-out with 'invalid ns'

http://groups.google.com/group/mongodb-user/browse_thread/thread/795f2f4993b93c15/1f024e42c07eb1d8?lnk=gst&q=invalid+ns#1f024e42c07eb1d8



 Comments   
Comment by auto [ 31/Dec/10 ]

Author:

{u'login': u'erh', u'name': u'Eliot Horowitz', u'email': u'eliot@10gen.com'}

Message: don't allow empty collection names SERVER-2314
https://github.com/mongodb/mongo/commit/d60aa255e3e54ea385dffb6a0c8d4889144273f3

Generated at Thu Feb 08 02:59:35 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.