[SERVER-21682] Can`t query on Mongo 3.0.7 db Created: 26/Nov/15  Updated: 07/Dec/16  Resolved: 27/Nov/15

Status: Closed
Project: Core Server
Component/s: Querying
Affects Version/s: 3.0.7
Fix Version/s: None

Type: Question Priority: Major - P3
Reporter: Vlad Solcan Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Ubuntu 14.0.4


Participants:

 Description   

Hi ,

I have installed a mongo 3.0.7 server on a Ubuntu 14.0.4 image .
I have added a db called "foo " , than added a user called "poo" with the following roles "dbAdmin". "dbOwner", "readWrite", "userAdmin" (all this are built in roles).
However even if my user is able to authenticate and query when I try from the mongo shell or another mongo tool like (MongoChef) , when I try to query from my .net Application I get an error saying that my user is not authorized for query ("MongoDB.Driver.MongoQueryException: QueryFailure flag was true (response was { \"$err\" : \"not authorized for query")

The mongo .net driver version I`m using in my app is 2.1.1 (I have also tried with 2.1.0)
Is this a compatibility issue between 3.0.7 and the .net mongo driver 2.1.x ?
The mongo version I installed , is the latest stable version according to the mongo db official documentation
"(Install the latest stable version of MongoDB.
Issue the following command:
sudo apt-get install -y mongodb-org)"



 Comments   
Comment by Stennie Steneker (Inactive) [ 27/Nov/15 ]

Hi,

The SERVER project is for reporting bugs or feature suggestions for the MongoDB server.

For MongoDB-related community support discussion please post on the mongodb-user group (http://groups.google.com/group/mongodb-user) or Stack Overflow. See our Technical Support page for additional support resources.

Thanks,
Stephen

Generated at Thu Feb 08 03:58:05 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.