[SERVER-678] Authorizing before running any command fails Created: 25/Feb/10  Updated: 12/Jul/16  Resolved: 25/Feb/10

Status: Closed
Project: Core Server
Component/s: Concurrency
Affects Version/s: 1.3.2
Fix Version/s: 1.3.3

Type: Bug Priority: Major - P3
Reporter: Karl Seguin Assignee: Eliot Horowitz (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Windows 7 64 Bit and Windows XP 64Bit
db version v1.3.2, pdfile version 4.5
Thu Feb 25 19:09:35 git version: a94e0b79b1e8640db475afc9d28aee75b6b8e519
(running 64 bit version)


Participants:

 Description   

Steps to reproduce:
1 - start a new database mongod --dbpath c:/data/bug/
2 - connect to the database and add a user to admin and disconnect
3 - restart the database with the --auth option
4 - connect to the database, switch to the admin database, and try to authorize (db.auth(...)) or try to getnonce;

You should get an error:
Thu Feb 25 19:06:08 Assertion failure getState() > 0 c:\work\buildslaves\windows_64bit_nightly\mongo\db\concurrency.h 109

Once you are in this state, it is no longer possible to auth or getnonce without restarting the server.

If you try to run a different command first, such as show users (which will give an authentication error) you can then proceed to authenticate successfully.

This is not a problem in 1.2.3.



 Comments   
Comment by Karl Seguin [ 26/Feb/10 ]

ah, sorry, my bad. Yes, my unit test covering this is now passing. thanks!

Comment by Eliot Horowitz (Inactive) [ 26/Feb/10 ]

Sorry - I meant with the current 1.3.x nightly.

Comment by Karl Seguin [ 26/Feb/10 ]

Still seeing the problem with a newer build:
db version v1.3.2, pdfile version 4.5
Fri Feb 26 08:33:15 git version: a94e0b79b1e8640db475afc9d28aee75b6b8e519

Comment by Eliot Horowitz (Inactive) [ 25/Feb/10 ]

i think this was fixed today.
can you test tomorrow (2/26)

Generated at Thu Feb 08 02:54:51 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.