-
Type:
Bug
-
Resolution: Incomplete
-
Priority:
Minor - P4
-
None
-
Affects Version/s: 2.4.10
-
Component/s: Tools
-
None
-
ALL
-
None
-
0
-
None
-
None
-
None
-
None
-
None
-
None
MongoDB 2.4.10
I thought you'd like to know about this bug which is closely related to SERVER-7181.
If you set up a user with only readWrite, and dbAdmin but not userAdmin privileges on a database, and then try and restore a previous DB into that database, you get the following error during a mongorestore:
Tue May 19 15:23:19.700 Assertion: 13111:field not found, expected type 2
0xdecc61 0xdafbab 0xdb00ec 0x6d5d7d 0x6e5bfb 0x6e3acb 0x6e7ddc 0xda34b8 0xda9248 0x6ccf37 0x3d68e1ecdd 0x6ccda9
mongorestore(_ZN5mongo15printStackTraceERSo+0x21) [0xdecc61]
mongorestore(_ZN5mongo11msgassertedEiPKc+0x9b) [0xdafbab]
mongorestore() [0xdb00ec]
mongorestore(_ZNK5mongo11BSONElement3chkEi+0x1fd) [0x6d5d7d]
mongorestore(_ZN7Restore9drillDownEN5boost11filesystem34pathEbbbb+0x24bb) [0x6e5bfb]
mongorestore(_ZN7Restore9drillDownEN5boost11filesystem34pathEbbbb+0x38b) [0x6e3acb]
mongorestore(_ZN7Restore5doRunEv+0xc7c) [0x6e7ddc]
mongorestore(_ZN5mongo8BSONTool3runEv+0x458) [0xda34b8]
mongorestore(_ZN5mongo4Tool4mainEiPPc+0x13d8) [0xda9248]
mongorestore(main+0x37) [0x6ccf37]
/lib64/libc.so.6(__libc_start_main+0xfd) [0x3d68e1ecdd]
mongorestore(__gxx_personality_v0+0x459) [0x6ccda9]
assertion: 13111 field not found, expected type 2
From the other issue SERVER-7181 it is clear that it is supposed to print a message about lack of authorisation, but instead you get this lowlevel error.