-
Bug
-
Resolution: Fixed
-
Minor
-
2.6.3, 2.7, 2.8
-
MOODLE_26_STABLE, MOODLE_27_STABLE, MOODLE_28_STABLE
-
MOODLE_26_STABLE, MOODLE_27_STABLE
-
46208-28
-
Moodle creates MongoDB collections names that start with digits. This is a bug.
According to http://docs.mongodb.org/manual/reference/limits/:
"Collection names should begin with an underscore or a letter character, ..."
The bug is evident when one tries to use the mongo find command on a collection whose name begins with a digit (e.g., 1b088c226629b3fa247ff7ef67dad266). The result is "Unexpected token ILLEGAL."
> db.1b088c226629b3fa247ff7ef67dad266.find()
Mon Jun 30 10:14:37.745 SyntaxError: Unexpected token ILLEGAL