-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: 1.6.3
-
Component/s: Security
-
None
-
Environment:ubuntu 10.04
-
ALL
-
(copied to CRM)
There is a bug when running in an authenticated environment and a connection tries to access a database that does not exist on the system.
What mongo is doing is creating the database trying to authenticate the given connection (see logs below). This now means when I go into mongo shell and type `show dbs;` I will see the database namespace created (but it is empty).
This makes it very difficult to use `show dbs` to see what databases a given mongo daemon has associated with it because many of them could be empty. In addition, this becomes a larger issue when running a replication scenario which has a single slave and multiple masters (which works flawlessly as long as database names do not conflict).
The logs of this happening:
Tue Nov 9 04:55:06 [conn2] Accessing: clobby-staging for the first time
Tue Nov 9 04:55:06 [conn2] assertion 10057 unauthorized db:clobby-staging lock type:-1 client:10.104.83.235 ns:clobby-staging.rooms query:
Tue Nov 9 04:55:06 [conn2] ntoskip:0 ntoreturn:-1
Tue Nov 9 04:55:06 [conn2] query clobby-staging.rooms ntoreturn:1 exception 0ms
This issue is an authentication issue that is similar to http://jira.mongodb.org/browse/SERVER-2079 but different enough use case that I felt it needed its own ticket.
- depends on
-
SERVER-2079 Authenticated Connections do not get terminated when dropDatabase() command is issued.
- Closed
- is depended on by
-
SERVER-3841 Profiling in admin DB can stick entries in other DBs (listDatabases command)
- Closed
- is related to
-
SERVER-10783 MongoDB displays databases even after dropDatabase() has completed successfully
- Closed
- related to
-
SERVER-2329 Dropped database doesn't disappear due to replication
- Closed
-
SERVER-13212 ListDatabases implementation can cause dropped dbs to reappear
- Closed
-
SERVER-11051 listDatabases command reports existence of databases that have never been written to.
- Closed