Skip to content

DefaultSubscriptionRegistry should prevent duplicate Subscriptions per subscription id [SPR-15229] #19794

Closed
@spring-projects-issues

Description

@spring-projects-issues

David Fuelling opened SPR-15229 and commented

It appears that the equals() and hashcode() methods have not been implemented in the private class DefaultSubscriptionRegistry.Subscription. This has the effect of allowing duplicate subscriptions with the same identifier into the Set<Subscription> held by each key in SessionSubscriptionInfo.destinationLookup. This seems like a bug, although it's possible that STOMP allows for duplicate subscriptions using the same subscription-Id?


Affects: 4.3.6

Referenced from: commits f219680, ba0484f

Metadata

Metadata

Assignees

Labels

in: messagingIssues in messaging modules (jms, messaging)in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions