create a userid with spaces in it like: "Max Mustermann"
there should be an error message, that this didn't work.
It just works
Operating system:
Ubuntu 18.03 LTS
Web server:
Apache
Database:
Pgsql
PHP version:
7.2
Nextcloud version: (see Nextcloud admin page)
17.0.2
Updated from an older Nextcloud/ownCloud or fresh install:
fresh
Where did you install Nextcloud from:
Nextcloud VM
While investigating possible testscenarios and userid's for https://github.com/nextcloud/vm/pull/1030, we experienced, that this is possible, but it shouldn't, because e.g. Federation wouldn't work. Also when logging in with that user, this happens:

Closing as duplicate.
Most helpful comment
https://github.com/nextcloud/server/issues/18855