Importing products with same name in different nodes(categories) doesn't work

Fixed in

EPiServer.Commerce 13.7.0

Created

Jun 17, 2019

Updated

Dec 09, 2019

State

Closed, Fixed and tested


Description

Steps to reproduce:

1. Have a catalog with two entries in two categories but the same UriSegment (or the same name and an empty UriSegment).
2. Add this setting to appSettings.

<add key="episerver:commerce.UseLessStrictEntryUriSegmentValidation" value="true"/>

3. Import the catalog described in step 1.

Expected:
The two entries keep their UriSegment.

Actual:
One entry has an autogenerated UriSegment with random characters.