2

The command line history of the interactive shell for MongoDB (2.0.4 on MacOSX Lion) doesn't work when I use commands on a collection called 'authentications', but it works fine for everything else, it seems.

$ mongo mydb
MongoDB shell version: 2.0.4
connecting to: mydb
> db.aimsx.find().count()
45
> 

Now if I hit up arrow, I get this:

> db.aimsx.find().count()

Works fine. However, now I run a command on the collection 'authentications':

> db.authentications.find().count()
795
>

When I hit up arrow now, I get this:

> db.aimsx.find().count()

No command on 'authentications' can be found in the history or in the ~/.dbshell file. Anyone has an explanation for this?

1 Answers1

9

It's a too-simple security mechanism. We don't save things that look like ".auth" to the history. There is a JIRA ticket asking to make this better.

mpobrien
  • 4,922
  • 1
  • 33
  • 35
Tad Marshall
  • 1,353
  • 8
  • 10