Skip to content

Fixed chat endpoints#110

Merged
the-only-queen-anna merged 3 commits into
developmentfrom
chat-endpoint-fix
May 20, 2026
Merged

Fixed chat endpoints#110
the-only-queen-anna merged 3 commits into
developmentfrom
chat-endpoint-fix

Conversation

@the-only-queen-anna
Copy link
Copy Markdown
Collaborator

Context

Unitl now, we had a verification implemented in the ChatController , that checked if the username was connected to a webSocket Session ID. However, the session ID management system is not yet fully in use, so I removed the verification, since it was throwing an exception because of a null username regardless of input.

Attention

This is a shortterm fix, we will add (better) verification back if we deem it needed during the next sprint. However, we chose to first see if the chat functionality overall is working, before we add verification and security mechanisms back.

Changes in the codebase

I removed the verification method (if we need it later, we can just go back to a commit and copy-paste it) and all of its calls.
I also updated the test cases and removed those tests, that specifically tested the removed method's functionality.

Changes outside the codebase

N/A

#Additional Information
N/A

tasaje1
tasaje1 previously approved these changes May 20, 2026
Copy link
Copy Markdown
Collaborator

@tasaje1 tasaje1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

als short term fix okay :)

/**
* Verifies the sender's name, lobbyID, team and role sending a message to the operatives on the
* respective team.
* Verifies the sender's team and role and delegates message processing to @link ChatService.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so formattieren : {@link ChatService}

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ist geändert, danke :)

@sonarqubecloud
Copy link
Copy Markdown

Copy link
Copy Markdown
Collaborator

@XtophB XtophB left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thx for fix!

Copy link
Copy Markdown
Collaborator

@tasaje1 tasaje1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@the-only-queen-anna the-only-queen-anna merged commit 06a51e1 into development May 20, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants