Vulnerability in EPiServer.Forms
Hi, the entire edit mode issues "502 – Web server received an invalid response while acting as a gateway or proxy server" and in Console I see the error below that I am posting here, in case someone came across it:
[ArgumentException: Value cannot be null or empty.
Parameter name: controllerName]
at System.Web.Mvc.HandleErrorInfo..ctor(Exception exception, String controllerName, String actionName)
at System.Web.Mvc.HandleErrorAttribute.OnException(ExceptionContext filterContext)
at System.Web.Mvc.ControllerActionInvoker.InvokeExceptionFilters(ControllerContext controllerContext, IList`1 filters, Exception exception)
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.b__1e(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult)
at EPiServer.Shell.Services.Rest.RestControllerBase.EndExecute(IAsyncResult asyncResult)
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)>
These are my Episerver packages:
Any help greatly appreciated.
Now that I run this locally, I get the following error on the same URL:
The Type 'EPiServer.Shell.Search.SearchProviderSetting' needs to be remapped in the Dynamic Data Store, see the Errors collection for more information.Remapping can be done by applying the EPiServer.Data.Dynamic.EPiServerDataStoreAttribute attribute to the type,setting its AutomaticallyRemapStore property to true and ensuring the <episerver.dataStore><dataStore> autoRemapStores attribute in web.config is set to true (or is not defined).
No deploys for a month, so I am not sure what could have happened to cause the mismatch in DDS and code?
Found this old error: http://world.episerver.com/forum/developer-forum/-EPiServer-75-CMS/Thread-Container/2014/9/StoreInconsistencyException-EPiServerShellSearchSearchProviderSetting/?pageIndex=1#reply
OK, eventually I found this:
Now I am applying it with recommendations from Per:
Backup the DB first :)
Let's see how it goes, but to begin with, now the query should be:
DELETE FROM tblBigTableStoreInfo
WHERE fkStoreId IN (
SELECT pkId FROM tblBigTableStoreConfig
WHERE StoreName = 'EPiServer.Shell.Search.SearchProviderSetting')
So, the posts partially helped me. Delete did work, but after the restart, the application did not recreate them automatically. The cmdlet EPiRemapDDSTypes does not longer exist and I ended up with a simple tool that does the rebuild that Paul Smith created: http://world.episerver.com/forum/developer-forum/EPiServer-CMS-6-R2/Thread-Container/2012/1/Where-is-the-Upgrade-EPiRemapDDSTypes-cmdlet-/
This solved the error, but the edit mode is still so slow that it impacts the view as well and sometimes it loads and loads, but now without any logged errors.
Then, I disabled Episerver Projects (since we have had some issues with them previously) as well as Web Sockets and now all works really fast. I'll need to troubleshoot this further, but the error with remapping is at least fixed.
It would be really great to know why it happened out of the blue (at least it seems so).