core-java icon indicating copy to clipboard operation
core-java copied to clipboard

Posting commands with tenant ID to single-tenant BC

Open dmytro-kashcheiev opened this issue 3 years ago • 1 comments

Spine 1.7.1

If you mistakenly create a command via ActorRequestFactory with tenantId that targets single-tenant BC.

And post this command directly to CommandService via post(Command request, StreamObserver<Ack> responseObserver).

Response observer receives onCompleted but the command is not delivered and leads to internal CommandErrored that is not even logged.

dmytro-kashcheiev avatar Jul 28 '21 09:07 dmytro-kashcheiev

Let's check this upon receiving the command. And fail fast in case of the tenancy mismatch.

armiol avatar Apr 15 '22 10:04 armiol