[SERVER-7590] Mongo shell assertion violation when invoking ObjectId() on malformed id Created: 08/Nov/12  Updated: 15/Feb/13  Resolved: 13/Nov/12

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

Type: Bug Priority: Major - P3
Reporter: Nitsan Seniak Assignee: Tad Marshall
Resolution: Duplicate Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-7010 ObjectId(ObjectId("4e859938e4b0c81c14... Closed
Operating System: OS X
Participants:

 Description   

$ mongo
MongoDB shell version: 2.0.6
connecting to: test
> ObjectId("93ed8ec8-ac15-4ecd-a339-6322c01401b0")
Thu Nov 8 15:20:35 Assertion: 10448:invalid object id: length
0x10007cc8d 0x1000e512b 0x1000f8373 0x10015d512 0x10014e368 0x10015cda9 0x10011279b 0x100107fc2 0x100008a5f 0x10000aaca 0x100001454
0 mongo 0x000000010007cc8d _ZN5mongo11msgassertedEiPKc + 333
1 mongo 0x00000001000e512b _ZN5mongo5Scope22validateObjectIdStringERKSs + 107
2 mongo 0x00000001000f8373 ZN5mongo21object_id_constructorEP9JSContextP8JSObjectjPlS4 + 147
3 mongo 0x000000010015d512 js_Invoke + 1218
4 mongo 0x000000010014e368 js_Interpret + 5400
5 mongo 0x000000010015cda9 js_Execute + 409
6 mongo 0x000000010011279b JS_EvaluateScript + 219
7 mongo 0x0000000100107fc2 _ZN5mongo7SMScope4execERKNS_10StringDataERKSsbbbi + 482
8 mongo 0x0000000100008a5f _Z5_mainiPPc + 6015
9 mongo 0x000000010000aaca main + 42
10 mongo 0x0000000100001454 start + 52
Thu Nov 8 15:20:35 Error: 10448 invalid object id: length (shell):1
> quit()


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