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

XMLWordPrintableJSON

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

      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 - Query Team (Inactive)
            Reporter:
            Jeffrey Yemin
            Votes:
            0 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated:
              Resolved: