[SERVER-9382] Mongo interactive shell bug Created: 18/Apr/13  Updated: 10/Dec/14  Resolved: 18/Apr/13

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

Type: Bug Priority: Major - P3
Reporter: Alexander Komyagin Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

mongo 2.4.2rc0


Issue Links:
Depends
Operating System: Linux
Steps To Reproduce:

db.xep.drop()
db.xep.insert(

{"foo" : "bar"}

)
a = db.xep.findOne()
a._id = 42
db.xep.insert(a)
assert.eq(db.xep.find(

{"_id" : 42}

).count(), 1)

Participants:

 Description   

In the interactive shell, find/findOne queries return objects with "abnormal" _id fields. Insert and upsert operations do not see it's presence.

Problem is not reproducible in the mongo shell from v2.4.1



 Comments   
Comment by Alexander Komyagin [ 18/Apr/13 ]

Thank you, Eliot. I didn't see the original ticket.

Comment by Eliot Horowitz (Inactive) [ 18/Apr/13 ]

This is the same bug that is in SERVER-9385.
Trying to consolidate conversation there.

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