This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.

This constraint is not consistent with the MongoDB documentation. In "MongoDB The Definitive Guide" page 9 states:

Database names can be any UTF-8 string, with the following restrictions:
• The empty string ("") is not a valid database name.
• A database name cannot contain any of these characters: ' ' (a single space), ., $, /, \, or \0 (the null character).
• Database names should be all lowercase.
• Database names are limited to a maximum of 64 bytes.

In our environment we are using database names that contain characters # and : as well, e.g. maphub:tst#tst#Test. This naming scheme cannot be implemented with spring-data-mongodb, but is allowed in MongoDB. Is there a way to circumvent the restriction in SimpleMongoDbFactory?