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

Updates with $ sign in key name fail

    XMLWordPrintable

    Details

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

      Description

      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"}

      );

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: