Skip to content

Encode user name in user-specific message destinations. [SPR-11302] #15926

@spring-projects-issues

Description

@spring-projects-issues

Pierre Fouché opened SPR-11302 and commented

The DefaultUserDestinationResolver in org.springframework.messaging.simp.user uses the user name obtained from the current Principal to build user-specific destinations.

However the user name can itself be a URI in some cases (eg when using OpenId authentication). Having slashes in the user name breaks the resolution of the targetDestination.

It seems to me that encoding (using SHA-1 for instance) the user name would make the algorithm more robust.


Affects: 4.0 GA

Referenced from: commits d03fb89

Metadata

Metadata

Assignees

Labels

in: messagingIssues in messaging modules (jms, messaging)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions