HttpContext.Current is null in custom SecurityEntityProvider

Found in

EPiServer.CMS.UI 10.10.5

Fixed in

EPiServer.CMS.UI 10.11.1

Created

Aug 09 2017

Updated

Nov 08 2017

Area

CMS UI

State

Closed, Fixed and tested


Description

Steps to reproduce

1. Create a custom SecurityEntityProvider that calls the HttpContext.Current in the Search method.
2. In the edit page, click Edit Approval Sequence.
3. Enable an approval sequence and enter the reviewer's name.

Expected: You get the reviewer's name in the reviewer drop down.

Actual: NullReferenceException in the custom SecurityEntityProvider created in step 1.