[SERVER-4186] db.collection.save() with documents that contain functions doubling up function names Created: 01/Nov/11 Updated: 11/Jul/16 Resolved: 08/Nov/11 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | JavaScript |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Kavi Siegel | Assignee: | Brandon Diamond |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Win 7 64 bit, Mongo 2.0 |
||
| Attachments: |
|
| Operating System: | Windows |
| Participants: |
| Description |
|
I suppose this pretty much should speak for its self. At first I thought just the internal function name doubled up, but the custom name would remain when __toString() is called in php. But what it does is take the full internal function name, then re-assign a prefix to it, returning the entire pre-update name as the new function name. Attached is a screenshot, before and after the update I've pasted below. > a = db.validation.findOne( {name:'cellPhone'}) ) ) ) ) ) ) |
| Comments |
| Comment by Brandon Diamond [ 08/Nov/11 ] |
|
I've implemented a simple fix to resolve this issue. A more comprehensive fix will come when we finish transitioning from spidermonkey to v8. |
| Comment by auto [ 08/Nov/11 ] |
|
Author: {u'login': u'', u'name': u'Brandon Diamond', u'email': u'brandon@10gen.com'}Message: |