Disable assignment in DefaultSubscriptionRegistry

Closes gh-36924
This commit is contained in:
rstoyanchev
2026-06-22 10:42:51 +01:00
parent 5059bbd58e
commit c64f2ee104
@@ -74,7 +74,8 @@ public class DefaultSubscriptionRegistry extends AbstractSubscriptionRegistry {
/** Static evaluation context to reuse. */
private static final EvaluationContext messageEvalContext =
SimpleEvaluationContext.forPropertyAccessors(new SimpMessageHeaderPropertyAccessor()).build();
SimpleEvaluationContext.forPropertyAccessors(new SimpMessageHeaderPropertyAccessor())
.withAssignmentDisabled().build();
private PathMatcher pathMatcher = new AntPathMatcher();