Player UUID#175
Conversation
the-only-queen-anna
left a comment
There was a problem hiding this comment.
Aktuell startet mit diesem Code bei mir der Server nicht, ich bekomme immer einen Error von der Datenbank, bitte mal selber probieren, ob das bei dir geht
Kannst du mir eventuell die genaue Fehlermeldung schicken, die du bekommst? Dann kann ich mir das genauer anschauen. |
|
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: [PersistenceUnit: default] Unable to build Hibernate SessionFactory; nested exception is org.hibernate.tool.schema.spi.SchemaManagementException: Schema-validation: missing column [uuid] in table [player] ich bekomm immer das, ist das ein lokales Problem ? eigentlich baue ich immer alle container neu |
|
Hab's mir angeschaut, die uuid-Spalte hat in der Datenbankmigration gefehlt. Das sollte jetzt mit der neuen Migration gefixt sein. Ich kann es bei mir leider nicht vollständig testen, weil ich beim Starten des Servers aktuell immer einen PostgreSQL-Authentifizierungsfehler bekomme (password authentication failed for user "codenames_user"). Könntest du nochmal schauen, ob es bei dir jetzt funktioniert? |
the-only-queen-anna
left a comment
There was a problem hiding this comment.
Hab noch einige Kommentare...
|
Das führt bei jeder Request zu einer NullPointerException java.lang.NullPointerException: null |
|
|
Tested this in meeting with @tasaje1 @the-only-queen-anna @ad-devel. It works 👍 |
tasaje1
left a comment
There was a problem hiding this comment.
tested during meeting works lgtm :)
the-only-queen-anna
left a comment
There was a problem hiding this comment.
Alle changes umgesetzt, LGTM




Context
implemented UUID-based authentification mechanism for players and preventing new joins during an active game
Description
players now get assigned a unique UUID upon joining a lobby. This helps in preventing new players from joining a lobby once a game has started
Changes in the code base
LobbyService: Added logic to validate UUIDs upon reconnecting
LobbyController: updated joinLobby endpoint to accept an optional uuid parameter
Lobby: updated player management to support UUID validation
Tests: updated/added tests in LobbyTest and LobbyServiceTest
Additional information
N/A