Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-451

Prevent key with dot for update with actual document but not for operator modifier document

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.7.0
    • Affects Version/s: 1.6.4
    • Component/s: None
    • None

      A document with a key containing a dot can be created via update. The Ruby driver has check_keys = false for update so that operator modifier doc args can specify subdocs, ex., "x.y". However this allows dots to leak in via actual document update. The server does not check this at present. We should investigate this and put in a check to prohibit dots in keys for actual document update, hopefully in an clean and efficient manner. Also consider whether to expose check_keys via the API for efficiency, with appropriate warnings in documentation, etc.

      Reference CS-3514 and SERVER-1988

            Assignee:
            tyler@10gen.com Tyler Brock
            Reporter:
            gjmurakami Gary Murakami
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: