-
Type:
Bug
-
Resolution: Done
-
Priority:
Major - P3
-
Affects Version/s: 2.6.0-rc1
-
Component/s: Shell, Testing Infrastructure
-
ALL
-
-
None
-
0
-
None
-
None
-
None
-
None
-
None
-
None
The addUser shell helper takes a document describing the user object. If it winds up writing that document directly to system.users (ie when talking to a pre-2.6 server), the doc gets an _id field added to it by the insert code. This makes re-using this document to re-create the user impossible without manually deleting the _id field. This is mainly a problem when testing, where a test may want to reuse the same user definitions multiple times.