[SERVER-9276] Console can't handle $symbol fields Created: 08/Apr/13 Updated: 03/Apr/23 Resolved: 19/Apr/13 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | JavaScript |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Alberto Ornaghi | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Mongodb 2.4.0, using console thru mongos (sharded env) |
||
| Issue Links: |
|
||||||||
| Operating System: | OS X | ||||||||
| Steps To Reproduce: | put the document into a collection and perform find() on it. |
||||||||
| Participants: | |||||||||
| Description |
|
if I try to query a document that has a $symbol field i receive this:
the document is like this (taken from mongohub which seems able to extract it):
|
| Comments |
| Comment by Alberto Ornaghi [ 22/Apr/13 ] | |||||||||||||||||||||||||||||||||
|
yes, 2.4.2 solved the issue. | |||||||||||||||||||||||||||||||||
| Comment by Ben Becker [ 19/Apr/13 ] | |||||||||||||||||||||||||||||||||
|
Hi Alberto, This issue should be resolved in v2.4.2 by | |||||||||||||||||||||||||||||||||
| Comment by Alberto Ornaghi [ 08/Apr/13 ] | |||||||||||||||||||||||||||||||||
|
data was inserted via mongoid/moped driver (3.1.2/1.4.4). that representation of the document is from MongoHub (a gui for macos to access mongodb documents). | |||||||||||||||||||||||||||||||||
| Comment by Tad Marshall [ 08/Apr/13 ] | |||||||||||||||||||||||||||||||||
|
The current code disallows insertion of field names that begin with '$':
How was this data inserted (driver or shell, version)? | |||||||||||||||||||||||||||||||||
| Comment by Alberto Ornaghi [ 08/Apr/13 ] | |||||||||||||||||||||||||||||||||
|
ooops, i reported the wrong document. (by the way the issue is the same even on that one). |