Skip to content

GetAllSubjectResources can cause dbcontext concurrency error #1649

Open
@knuhau

Description

Description

Calls to GetAllSubjectResources can cause dbcontext concurrency error

Reproduction

  1. For local reproduction, set FusionCache duration on the SubjectResource cache to 1 second here
  2. Call /api/v1/serviceowner/dialogs/ with a enduserId and a ServiceResource

Expected behavior

Returns dialog(s) belonging to the indicated ServiceResource and visible to the given EnduserId

Actual behavior

500: Internal Server Error
System.InvalidOperationException
A second operation was started on this context instance before a previous operation completed. This is usually caused by different threads concurrently using the same instance of DbContext. For more information on how to avoid threading issues with DbContext, see https://go.microsoft.com/fwlink/?linkid=2097913.

Additional information

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

  • Status

    Code Review og PR

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions