kevin-xw / rock-php

Automatically exported from code.google.com/p/rock-php
0 stars 0 forks source link

Setting user/pass to empty string triggers exception #115

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
In config.php
$MONGO['servers'][0]['admins'][0] = array('','');

What is the expected output? What do you see instead?
No toolbar on top, instead

: Uncaught exception 'Exception' with message 'MongoDB::__construct(): invalid 
name ' in D:\webroot\rockmongo\app\controllers\index.php:90 Stack trace: #0 
D:\webroot\rockmongo\app\controllers\index.php(90): Mongo->selectDB('') #1 
D:\webroot\rockmongo\rock.php(149): IndexController->doTop() #2 
D:\webroot\rockmongo\rock.php(64): RController->exec() #3 
D:\webroot\rockmongo\index.php(37): Rock::start() #4 {main} thrown in

What version of the product are you using?
v1.0.11

On what operating system?
win 7

Web server and PHP version:
apache/php5.3

Original issue reported on code.google.com by alektra....@gmail.com on 22 Feb 2011 at 8:33

GoogleCodeExporter commented 9 years ago
Please check your username and password in the config:

        "username" => null, // MongoDB connection username
        "password" => null, // MongoDB connection password

Original comment by iwind....@gmail.com on 23 Feb 2011 at 1:48

GoogleCodeExporter commented 9 years ago
You're relating to Mongo connection conf, I meant RockMongo GUI auth. However 
I've overlooked that there is "auth_enabled" switch which set to false, does 
not require one to log in to the tool. Sorry for false alarm.

Original comment by alektra....@gmail.com on 25 Feb 2011 at 2:34

GoogleCodeExporter commented 9 years ago

Original comment by iwind....@gmail.com on 9 Apr 2011 at 5:58