ListMatchingSegments does not filter for null

Fixed in

EPiServer.CMS.Core 11.14.0

Created

May 15, 2019

Updated

Dec 06, 2019

Area

CMS Core

State

Closed, Fixed and tested


Description

It is possible to call netContentMatchSegment with a null Segment. If tblContentLanguage contains a lot of NULL rows for UrlSegment, that can cause a parameter sniffing problem and severely affect performance.

If the segment parameter is null or empty, ListMatchingSegments should return empty.