Skip to content

Conversation

@ZeBobo5
Copy link

@ZeBobo5 ZeBobo5 commented Oct 26, 2025

Fixes #1647

Expected Behavior

The UseJsonSerialization option should be correctly passed to the ActorRuntimeOptions configuration so that JSON serialization is properly used when configured.

Actual Behavior

The line

UseJsonSerialization = options.UseJsonSerialization

is missing in the code block inside [ActorsServiceCollectionExtensions.cs](https://github.com/dapr/dotnet-sdk/blob/274eb529b11d36d490070530afff49d774fe0bb4/src/Dapr.Actors.AspNetCore/ActorsServiceCollectionExtensions.cs#L62).
As a result, JSON deserialization may not work as expected.

Steps to Reproduce the Problem

  1. Configure an actor with UseJsonSerialization = true.
  2. Run the application.
  3. Observe that JSON serialization settings are not applied, because the option is never propagated.

Release Note

RELEASE NOTE: FIX Missing propagation of UseJsonSerialization option in ActorsServiceCollectionExtensions.

@ZeBobo5 ZeBobo5 requested review from a team as code owners October 26, 2025 03:12
@ZeBobo5 ZeBobo5 force-pushed the fix/missing-propery-propagation branch from cea3d32 to 6c55ba9 Compare October 26, 2025 03:16
Ensures the UseJsonSerialization option is correctly passed through when configuring actor runtime settings, maintaining consistent serialization behavior.

Signed-off-by: Laurent BOHEAS <[email protected]>
Signed-off-by: ZeBobo5 <[email protected]>
@ZeBobo5 ZeBobo5 force-pushed the fix/missing-propery-propagation branch from 6c55ba9 to ea3a795 Compare October 26, 2025 03:29
@WhitWaldo WhitWaldo added this to the v1.17 milestone Oct 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing propagation of UseJsonSerialization option in ActorsServiceCollectionExtensions

2 participants