Repository navigation
Conversation
DirectMessageTopicGuard already dropped a client's SEND to a DM topic. It now drops a client's SEND to any destination the simple broker handles (WebSocketBrokerConfig.BROKER_PREFIX, "/topic"), so group chat topics get the same rule. Only the server publishes to topics: pages send group messages over REST, and Spring's group page sends to /app/groups.chat. The tests cover SENDs to DM, group and other topic destinations being dropped, and the server's own group broadcast still reaching its subscribers.
Contributor
Author
|
Combined into #314 with the same commits. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This follows #286 and uses the same guard. A client's SEND to any
/topic/...destination on the chat socket (/ws-chat) is now dropped, so group chat topics get the same rule #286 gave DM topics.DirectMessageTopicGuardalready dropped a client's STOMP SEND frame to/topic/dm/.... It now drops a SEND to any/topic/...destination, since the simple broker relays everything under/topicto its subscribers. That includes/topic/group/{id}./topicprefix intoWebSocketBrokerConfig.BROKER_PREFIX, so the broker config and the guard use the same value./topic/.... The pages chats post group messages over REST, and the pages calendar card and Spring's group page send to/app/groups.chat(an/appdestination, which is still allowed), so no client I found sends to a topic directly. The server's own group broadcasts are unchanged.Other notes:
docs/group-chat-architecture.mdand added a line about it under the chat socket notes inAGENTS.md./topicdestinations are dropped, and that the server's own group broadcast still reaches subscribers. The full suite passes exceptImportPersonPasswordTest, which needs a local.env, andPersonCapstoneApprovalRouteTest, which fails the same way on master right now.How to try it:
./mvnw test -Dtest='DirectMessageTopic*Test'.