[SERVER-6783] Auth issues with PyMongo 2.2.1 and MongoDB 2.2.0-rc1 Created: 16/Aug/12  Updated: 15/Feb/13  Resolved: 16/Aug/12

Status: Closed
Project: Core Server
Component/s: Security
Affects Version/s: 2.2.0-rc1
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Jonathan Schneider Assignee: Bernie Hackett
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

CentOS 6.2 x64


Operating System: Linux
Participants:

 Description   

While testing MongoDB 2.2.0-rc1 in Python with the latest PyMongo driver (2.2.1) and using auth I have found that ensure_index() does not work and fails with an unauthorized error. I was testing using a test DB and user account. The same user account can create an index in the test DB without issue from the Mongo console. This code previously worked fine while running MongoDB 2.0.7 and PyMongo 2.1.1



 Comments   
Comment by Bernie Hackett [ 16/Aug/12 ]

You're welcome. If you see any more issues like this feel free to open a ticket in the PYTHON project.

Comment by Jonathan Schneider [ 16/Aug/12 ]

Great, thanks!

Comment by Bernie Hackett [ 16/Aug/12 ]

Hi Jonathan,

This is due to a change in MongoDB 2.2 that required a fix in PyMongo. See PYTHON-371, which is already fixed. There should be an rc1 release of PyMongo 2.3, including this change, tomorrow or Monday. You can pull PyMongo from master if you want to use it now.

Comment by Jonathan Schneider [ 16/Aug/12 ]

I should specify the test environment in this case is made up of 2 shards.

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