× Heads up!

Aqua Data Studio / nhilam

Follow
IDE for Relational Databases
×
rkshakya reported 2013-06-26T08:03:33Z  · last modified 2013-07-26T15:00:26Z

strange error while trying to connect to 'local' DB on auth enabled sharded cluster


Priority Minor
Complexity Unknown
Component MongoSQL
Version 14.0

Encountered on ADS 14-beta-33.

While trying to connect to 'local' database on authentication enabled sharded cluster, database connection fails with message 'An error occurred while attempting to connect to your database: 'ok' should never be null...'

(Please refer to the attached screenshot autherror.png).

Steps to reproduce issue:

1) Initiate a sharded cluster as follows (Pls set configurable params as needed):

  • start a config server : mongod --configsvr --dbpath /home/ravi/sharding/configdb --port 27019 --keyFile /home/ravi/sharding/kfconfig --auth --setParameter enableLocalhostAuthBypass=0
  • start a mongos instance : mongos --configdb localhost:27019 --keyFile /home/ravi/sharding/kfmongos --setParameter enableLocalhostAuthBypass=0
  • start individual shards : mongod --port 27027 --dbpath /home/ravi/sharding/data2 --keyFile /home/ravi/sharding/kfmongod2 --auth --setParameter enableLocalhostAuthBypass=0  and so on

2) Create a user with username/password = champak/champak that has 'readWrite' privilege on 'test' database.

3) Now try connecting to the 'local' database by providing information as in screenshot autherror.png.

Expected outcome:

a) The user should have been displayed proper error message if auth fails else he should be granted access to the DB.

Actual outcome:

a) A strange error message 'An error occurred while attempting to connect to your database: 'ok' should never be null...' is displayed.

 

1 attachment

Issue #9443

Closed
Fixed
Resolved 2013-07-16T20:48:08Z
 
 
Completion
No due date
Fixed Build ADS 14.0.0-beta-68 (mongo-jdbc 1.2.5)
No time estimate

About AquaClusters Privacy Policy Support Version - 19.0.2-4 AquaFold, Inc Copyright © 2007-2017