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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 1.6.4
    • Fix Version/s: 1.7.0
    • Component/s: None
    • Labels:
      None

      Description

      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

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: