[SERVER-4442] It is possible to rename a collection to an empty string Created: 06/Dec/11 Updated: 11/Jul/16 Resolved: 12/Dec/11 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Usability |
| Affects Version/s: | 2.0.1 |
| Fix Version/s: | 2.1.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Marc Bastien | Assignee: | Kevin Matulef |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
All |
||
| Issue Links: |
|
||||||||
| Backwards Compatibility: | Minor Change | ||||||||
| Operating System: | ALL | ||||||||
| Participants: | |||||||||
| Description |
|
Mongo does not allow the creation of collections with an empty string as the name, but it is possible to rename an existing collection to "". To reproduce: > db[""].save( {x:2}) // it is not possible to create a new collection with an empty string as the name ) ) // it is possible to rename an existing collection to an empty string > db[""].find() { "_id" : ObjectId("4ede683f5833a9b2c91c8dc0"), "x" : 2 }> |
| Comments |
| Comment by auto [ 12/Dec/11 ] |
|
Author: {u'login': u'matulef', u'name': u'Kevin Matulef', u'email': u'matulef@gmail.com'}Message: |