fix: Added constraints for valid usernames
authorKai Moritz <kai@juplo.de>
Tue, 10 Jan 2023 22:59:36 +0000 (23:59 +0100)
committerKai Moritz <kai@juplo.de>
Tue, 10 Jan 2023 23:10:09 +0000 (00:10 +0100)
commit3b2e7d20030784a50dca31fd64b4c057468c43b7
treefa3cc115f2c9729c92e95dcc19a57528ea59515d
parent075afd36c1d0ea116a8b881ae33f6ea5457b5179
fix: Added constraints for valid usernames

- This fix is necessary, because not all usernames can be stored in
  the newly introduced `MongoDbStorageStrategy`.
src/main/java/de/juplo/kafka/chat/backend/api/ChatBackendControllerAdvice.java
src/main/java/de/juplo/kafka/chat/backend/domain/ChatRoom.java
src/main/java/de/juplo/kafka/chat/backend/domain/InvalidUsernameException.java [new file with mode: 0644]
src/test/java/de/juplo/kafka/chat/backend/api/ChatBackendControllerTest.java