Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

IPrincipal parameter is ignored in ToHtmlString() method

Found in

EPiServer.CMS.Core 7.5.394.2

Fixed in

EPiServer.CMS.Core 9.10.1

(Or a related package)

Created

May 18, 2016

Updated

Jun 03, 2016

Area

CMS Core

State

Closed, Fixed and tested


Description

The XhtmlString ToHtmlString method has an overload that takes an IPrincipal parameter. The problem is that the parameter is ignored.
In later versions (CMS 9.9), an accessor was used instead of the previously static PrincipalInfo.CurrentPrincipal, causing a NullReferenceException.