A BSONElement of type String has a pointer+length implementation and therefore may contain an embedded null byte. However, in parsing we often interpret the string as null terminated, resulting in a different namespace that is considered valid later in the execution of the command. Such operations should fail with a useful message during parsing.
- is duplicated by
-
SERVER-26858 Remove explain_cmd_invalid_namespace.js from sharding_last_stable_mongos_and_mixed_shards blacklist
- Closed
- related to
-
SERVER-24389 Fix or remove Command::parseNs()
- Backlog