× Heads up!

Aqua Data Studio / nhilam

Follow
IDE for Relational Databases
×
anilkalshetti reported 2014-11-03T10:38:18Z  · tariqrahiman last modified 2014-12-17T23:37:57Z

Shows NPE for db.auth() method


Dev
Jenny Nishimura
JennyNishimura
QA
Tariq Rahiman
tariqrahiman
Priority Low
Complexity Unknown
Component MongoShell
Version 16.0

Aqua Data Studio 16.0.0-dev-16
Build #: 40762
Built on: 2014-Oct-27 04:04:32 PM     

OS: Ubuntu 14.04-1
Linux (3.13.0-36-generic, amd64) / UTF-8 / en / IN / Oracle Corporation 1.7.0_60-b19
Memory: Max=3,817,865,216;  Total=1,518,338,048;  Free=225,527,464;  CPUs=8

Database: MongoDB 2.7.8   and
                  MongoDB 2.6.5

Issue:  Shows NPE  for db.auth() method

Detailed Steps to reproduce the issue:
1. Start MongoDB 2.7.8, 
and open ADS, Register MongoDB Server with NoAuthentication type.
 
2. In ADS, right click on MongoDB server and click on MongoShell.
MongoShell tab opens.
Execute the below commands:
 
use admin;
db.createUser( { user: "Bob",
 pwd: "Moon1234",
 roles: [ "readWrite", "dbAdmin" ]
 } );
 
3. Then run below command.
db.auth("Bob", "Moon1234");
 
it shows error message as on ADS-mongoshell
error: {"$err" : "java.lang.NullPointerException: null"}
 
Method: 
db.auth(usernamepassword)
- Allows a user to authenticate to the database from within the shell.
db.auth() returns 0 when authentication is not successful, and 1 when the operation is successful.
 
 
@Dev

Observations:
 

ADS 16.0.0-dev-16 build -  using MongoDB 2.7.8  , MongoDB 2.6.5  -  Shows NPE  - Fail

ADS 16.0.0-dev-16 build -    using MongoDB 2.1.12  -  Shows proper result  - Pass

ADS 15.0.9-17 -    MongoDB 2.7.8  , MongoDB 2.6.5 , MongoDB 2.4.12  - Shows Proper Result - Pass

Please refer screenshot1.png

2 attachments

Issue #12642

Closed
Fixed
Resolved 2014-12-17T17:12:37Z
 
 
Completion
No due date
Fixed Build ADS 16.0.0-dev-78
No time estimate

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