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

Validate the collection name for commands that read documents from a collection

    • Type: Icon: Improvement Improvement
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Querying
    • Query

      When the server receives a command sent to a database with an illegal name (e.g., one that contains a '.' character), it returns an OP_REPLY with zero documents.

      For example, a createIndexes command sent to the 'dbname-v1.1' database:

      query dbname-v1.1.$cmd query: { createIndexes: "whatever", indexes: [ { key: { aField: 1 }, name: "aField_1", ns: "dbname-v1.1.whatever" } ] }
      

      returns a reply with zero documents.

      Expected results: reply with a document indicating command failure.

            Assignee:
            backlog-server-query Backlog - Query Team (Inactive)
            Reporter:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Votes:
            0 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated:
              Resolved: