[SERVER-6284] $where is broken in 2.1.2 findAndModify Created: 02/Jul/12  Updated: 11/Jul/16  Resolved: 03/Jul/12

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 2.1.2
Fix Version/s: 2.2.0-rc0

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

Operating System: ALL
Participants:

 Comments   
Comment by auto [ 03/Jul/12 ]

Author:

{u'date': u'2012-07-03T02:03:30-07:00', u'name': u'Eliot Horowitz', u'email': u'eliot@10gen.com'}

Message: was missing a Client::Context in findAndModify SERVER-6284
Branch: master
https://github.com/mongodb/mongo/commit/61e1be3e06600312da878c63ac72bb8bc9ac9b8b

Comment by Scott Hernandez (Inactive) [ 03/Jul/12 ]

Repro:

> 
db.a1.findAndModify({query:{$where:"true"}, update : {$set:{found:new Date()}}, new:true, upsert:true})
Mon Jul  2 20:24:06 uncaught exception: findAndModifyFailed failed: "exception: (anon) exec failed: JS Error: Error: [] is not a valid database name src/mongo/shell/mongo.js:40"
> 

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