[SERVER-3138] Can't operate on a database with a Unicode BOM in its name Created: 24/May/11  Updated: 29/Aug/11  Resolved: 26/May/11

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

Type: Bug Priority: Minor - P4
Reporter: Seamus Abshere Assignee: Unassigned
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Ubuntu 11.04


Operating System: Linux
Participants:

 Description   

I somehow have a database named U+FEFF (i.e., the Unicode byte order mark).

$ mongo --username admin --password XXXXXXX admin
MongoDB shell version: 1.8.1
connecting to: admin
billingreplicaset:PRIMARY> show dbs
admin 0.203125GB
billing 9.94921875GB
local 1.203125GB
test (empty)
(empty

I actually had to delete the (invisible) BOM from this paste in order to submit the issue.

Needless to say I can't delete it, because the shell thinks it's an empty string (or a bad character). I have no idea how it got there. (lol)

By the way, this appeared after I set up a replica set.



 Comments   
Comment by Seamus Abshere [ 25/May/11 ]

I believe this was part of a wider corruption problem that happened after a power failure.

I fixed it with mongodump and then mongorestore.

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