Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-9276

Console can't handle $symbol fields

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Duplicate
    • None
    • None
    • JavaScript
    • None
    • Mongodb 2.4.0, using console thru mongos (sharded env)
    • OS X
    • Hide

      put the document into a collection and perform find() on it.

      Show
      put the document into a collection and perform find() on it.

    Description

      if I try to query a document that has a $symbol field i receive this:

      Mon Apr  8 10:38:25.181 Assertion: 16661:can't handle type: 14 type: "sms"
      0x10016fc9b 0x100134129 0x10013460c 0x100114297 0x100118f93 0x1003dafa2 0x1003daa12 0x10043dd59 0x169548c06362 0x169548c1701e 
       0   mongo                               0x000000010016fc9b _ZN5mongo15printStackTraceERSo + 43
       1   mongo                               0x0000000100134129 _ZN5mongo11msgassertedEiPKc + 217
       2   mongo                               0x000000010013460c _ZN5mongo11msgassertedEiRKSs + 12
       3   mongo                               0x0000000100114297 _ZN5mongo7V8Scope16mongoToV8ElementERKNS_11BSONElementEb + 967
       4   mongo                               0x0000000100118f93 _ZN5mongoL8namedGetEN2v85LocalINS0_6StringEEERKNS0_12AccessorInfoE + 1443
       5   mongo                               0x00000001003dafa2 _ZN2v88internal8JSObject35GetPropertyAttributeWithInterceptorEPS1_PNS0_6StringEb + 946
       6   mongo                               0x00000001003daa12 _ZN2v88internal10JSReceiver32GetPropertyAttributeWithReceiverEPS1_PNS0_6StringE + 226
       7   mongo                               0x000000010043dd59 _ZN2v88internal19Runtime_HasPropertyENS0_9ArgumentsEPNS0_7IsolateE + 185
       8   ???                                 0x0000169548c06362 0x0 + 24830426506082
       9   ???                                 0x0000169548c1701e 0x0 + 24830426574878
      Error: 16661 can't handle type: 14 type: "sms"

      the document is like this (taken from mongohub which seems able to extract it):

      {
        "_id": { "$oid" : "51627DBE2AFB65BD1700000A" },
        "type": "addressbook",
        "data": {
          "name": "Bruno Doe",
          "contact": "",
          "info": "bruno.doe",
          "program": { "$symbol" : "skype" },
          "type": { "$symbol" : "peer" }
        }
      }

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              alor Alberto Ornaghi
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: