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

Updates with $ sign in key name fail

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.0.1, 2.0.4, 2.1.0
    • Component/s: Usability, Write Ops
    • Labels:
    • Environment:
      Tested on 2.0.1 on 64bit Linux and on 2.0.4 on 32bit Windows XP
    • ALL

      db.test.insert(

      {"_id": "someid", "attribute": "somevalue"}

      );
      db.test.update(

      {"_id" : "someid"}

      ,{$set: {"pos_list":

      {"PRP$": "PRP$ - Possessive pronoun"}

      }});

      The second line returns the following error:
      not okForStorage

      Interestingly, inserting the same attribute-value pair works:
      db.test.insert(

      {"_id": "someotherid", "PRP$": "PRP$ - Possessive pronoun"}

      );

            Assignee:
            scotthernandez Scott Hernandez (Inactive)
            Reporter:
            pruhrig Peter Uhrig
            Votes:
            2 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: