Some of my colleagues and I recently noticed that the CREATECOLLECTION API will create a collection even when invalid characters are present in the name.
For example, consider the following reproduction case, which involves creating a collection with a space in its name:
The commands/responses above suggest that Solr creates the collection without checking the name. It then goes on to create the cores for the collection, which fails and returns the error seen above.
I verified this by doing a curl -i -l -k "http://localhost:8983/solr/admin/cores; as expected the cores were not actually created. (This is probably thanks to Erick's work on
This bug is a problem because it will create collections which can never be backed up with actual cores.
Seems like the same name-verification that 8308 added to cores should also be applied to collections.