akka/akka — pull request #15362 by 2m (2014-06-05 08:23:22+00:00)
Title: =con #15285 wrap message in RouterEnvelope before routing (for validation)

PubSubMediator uses router which always unwraps RouterEnvelope messages.
However unwrapping is undesirable if user sends message in
ConsistentHashableEnvelope. Thus PubSubMediator should always wrap user
messages in RouterEnvelope which will be unwrapped by the router, leaving
user message unchanged.

Also disallow consistent hashing routing logic in pub-sub mediator.

Fixes #15285