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>
Sun, 15 Jan 2023 18:37:55 +0000 (19:37 +0100)
commit8807aed04c47617560118b246c90bd6c57b88a70
treee730e1f01f23af0a6aee1fc98cd8d657a4c2d782
parent507f7b8bba5878ee2c31471836f4c0206c6a851a
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