-
Type: Improvement
-
Resolution: Duplicate
-
Priority: 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.
- duplicates
-
SERVER-12817 Read only commands should validate their namespaces
- Backlog
- is related to
-
JAVA-1644 NPE on createIndex when the database name contains a "."
- Closed
-
DRIVERS-2092 Drivers Spec : Specify object, collection, and database name validation rules
- Closed