Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 15492 bugfix: Prevent session connection closing in WorkflowTypeController #15495

Merged

Conversation

M-Lipin
Copy link
Contributor

@M-Lipin M-Lipin commented Mar 12, 2024

Fixes #15492

The reason for the error is that in version OrchardCore 1.8.2 WorkflowTypeController was added using (and thereby disposing) when calling CreateConnectionAsync method of Session object. A session object is an object created probably with a scoped lifetime and will be destroyed with a destructor call and mandatory closure with a connection in the finally block at the end of the web request, i.e. there is no need to use using during web request processing when Session calls can still be made.

@sebastienros sebastienros enabled auto-merge (squash) March 12, 2024 20:28
@sebastienros sebastienros merged commit bf7065a into OrchardCMS:main Mar 12, 2024
4 checks passed
urbanit pushed a commit to urbanit/OrchardCore that referenced this pull request Mar 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

System.ObjectDisposedException is thrown when navigating to Workflows in OrchardCore 1.8.2
2 participants