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

Closed
andypetrella opened this Issue Aug 18, 2012 · 3 comments

Comments

Projects
None yet
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

This comment has been minimized.

Show comment
Hide comment
@tisoft

tisoft Aug 18, 2012

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.

tisoft commented Aug 18, 2012

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

This comment has been minimized.

Show comment
Hide comment
@andypetrella

andypetrella Aug 18, 2012

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

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

@leon

This comment has been minimized.

Show comment
Hide comment
@leon

leon Aug 19, 2012

Owner

Fixed in v1.0.9 9265a26

Owner

leon commented Aug 19, 2012

Fixed in v1.0.9 9265a26

@leon leon closed this Aug 19, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment