Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Mongolab doesn't allow list databases... #23

Closed
andypetrella opened this Issue · 3 comments

3 participants

@andypetrella

hello, I'm currently trying to use MongoLab with play-salat, however as the subject says, this provider restrict the access to the dbs command.

The problem comes from the SalatPlugin's onStart method that is doing a sanity check by requesting all database names... And so throw an error saying that the server is not recheable (couldn't connect); which is false, we just haven't the right to do so :/.

To resolve this we could maybe request the collections on a specific database (from the config)?

Here is the SO related question: http://stackoverflow.com/questions/12012129/cant-connect-to-mongodb-from-play-app-with-salat-command-failed-listdatabases

Cheers

@tisoft

I have the same problem on my own database server and I don't want to give the play user admin access. It even needs read/write access on the admin db, to be allowed to run this command.

Would it be possible to just list the collections of the current db instead? That should be enough for a test if the user is really logged in.

@andypetrella

Don't bother, I've just did it: #24.
Wait and see ;-)

@leon
Owner

Fixed in v1.0.9 9265a26

@leon leon closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.