Context is not properly initialized in pipeline

380 Views Asked by At

We are using custom layout in sitecore. After upgrading to sitecore 8.2, any webapi calls are failing because Context.Data.Site is null and Context.User is coming as default/Anonymous even though user is logged in. This failure is in below method which is called during each api calls.

Sitecore.Mvc.Pipelines.Request.RequestBegin.EnsureLoggedInForPreview

I can see context is initialized but only some of the fields/properties are empty for this context. I am able to reinitialise Context.Data.Site with default value by patching through processor. But I need user also to be initialised properly.

Can someone help me with this?

0

There are 0 best solutions below