Skip to content

Missing propagation of UseJsonSerialization option in ActorsServiceCollectionExtensions #1647

@ZeBobo5

Description

@ZeBobo5

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions