[SERVER-1080] eval failing Created: 03/May/10  Updated: 12/Jul/16  Resolved: 03/May/10

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

Type: Bug Priority: Minor - P4
Reporter: Kyle Banker Assignee: Eliot Horowitz (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

linux, windows


Participants:

 Description   

seems to be failing across drivers.

======================================================================
ERROR: test_eval (test.test_database.TestDatabase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\10gen\buildslaves\drivers\windows\mongo-python-driver\test\test_database.py",
line 311, in test_eval
self.assertEqual(3, db.eval("function

{return x;}

", 3))
File "C:\10gen\buildslaves\drivers\windows\mongo-python-driver\pymongo\database.py",
line 576, in eval
result = self.command("$eval", code, args=args)
File "C:\10gen\buildslaves\drivers\windows\mongo-python-driver\pymongo\database.py",
line 306, in command
(command, result["errmsg"]))
OperationFailure: command SON([('$eval', Code('function

{return x;}

', {})), ('args', (3,))]) failed: db assertion failure

And here's the line from the source that's failing:
http://github.com/mongodb/mongo-python-driver/blob/master/test/test_database.py#L311

And here's the implementation of eval:
http://github.com/mongodb/mongo-python-driver/blob/master/pymongo/database.py#L555



 Comments   
Comment by auto [ 03/May/10 ]

Author:

{'login': 'erh', 'name': 'Eliot Horowitz', 'email': 'eliot@10gen.com'}

Message: jsonString for CodeWScope SERVER-1080
http://github.com/mongodb/mongo/commit/7e8ab84b41b51945fb7bf9d85fc767a91c57cf78

Generated at Thu Feb 08 02:56:00 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.