Try our conversational search powered by Generative AI!

Improper transaction handling with CatalogContentProvider Copy

Found in

EPiServer.Commerce 11.0.0

Fixed in

EPiServer.Commerce 12.4.0

(Or a related package)

Created

Jun 29, 2018

Updated

Jul 09, 2018

Area

Core

State

Closed, Fixed and tested


Description

CatalogContentProvider.Copy has no transaction handling. So, the updated events are fired as soon as a version is created. This can cause problems as listeners to those events can try to load versions of that content and, as non-master language versions are created/updated, CatalogContentVersionStore creates those versions and interferes with the process.

Steps to produce:

  1. Install Find.Commerce.
  2. Make sure the catalog has two or more languages enabled.
  3. Publish an entry in all languages.
  4. Copy the enrty to another category.

Expected:
It is published in all languages, and there are no extra versions

Actual:
There are draft versions set as common drafts.