[SERVER-4955] Sharding a collection with a database name that has a regex character can result in a error Created: 13/Feb/12  Updated: 11/Jul/16  Resolved: 21/Feb/12

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: 1.8.4
Fix Version/s: 2.1.1

Type: Bug Priority: Major - P3
Reporter: Randolph Tan Assignee: Randolph Tan
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

1. Create a database named "test" and "user" collection under it.
2. Enable sharding on test and shard test.user.
3. Create a database named "[^0-9]+" and "loc" collection under it.
4. Enable sharding on [^0-9]+.loc -> error message "can't have 2 databases that just differ on case have: test want to add: ^[0-9]" appears



 Comments   
Comment by auto [ 17/Feb/12 ]

Author:

{u'login': u'renctan', u'name': u'Ren', u'email': u'renctan@gmail.com'}

Message: SERVER-4955 Sharding a collection with a database name that has a regex character can result in a error
Branch: master
https://github.com/mongodb/mongo/commit/d0542e44d90aa410bc82456f5ee1d06a73396b2c

Generated at Thu Feb 08 03:07:27 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.