OrchardCMS / Orchard

Orchard is a free, open source, community-focused Content Management System built on the ASP.NET MVC platform.
https://orchardproject.net
BSD 3-Clause "New" or "Revised" License
2.38k stars 1.12k forks source link

LazyField loader throwing an exception in TermsPartHandler (Orchard.Taxonomies) #8760

Closed AndreaPiovanelli closed 9 months ago

AndreaPiovanelli commented 9 months ago

https://github.com/OrchardCMS/Orchard/blob/44bfa390bc9f465b7160a05e9b567b9a11b1c2cd/src/Orchard.Web/Modules/Orchard.Taxonomies/Handlers/TermsPartHandler.cs#L68

LazyFields sometimes throw exceptions in their loaders, because database session gets closed. As a reference, see PR #8725 because the same behaviour has been noticed (ad solved) for ContentPickerFields and MediaLibraryPickerFields.