Steps to replicate the issue (include links if applicable):
- create a new wiki with a custom domain that includes whitespace, example (note leading whitespaces): example.com
- alternatively: add whitespaces to the domain name in the tests, for example L54 & L61 - the test still runs!
What happens?:
An wiki with whitespace chars in its domain name gets successfully created, which is not a valid domain name and makes the wiki unusable for the user.
What should have happened instead?:
- The API should return an error if a domain name including whitespace characters is submitted
- An error messag explaining the situation should be displayed to the user
Also we should add test cases for this scenario in these two tests: