RecordStorage InsertRecord method requires HttpContext.Current.Request, which is not always available
Hi,
We have code to migrate our "old" contour records to Umbraco forms.
Something like :
Code
foreach (var umbracoFormRecord in umbracoFormRecords)
{
// create the record
recordStorage.InsertRecord(umbracoFormRecord, umbracoForm);
}
We can't do this, because the current line in the Umbraco.Forms.Data.Storage.RecordFieldValueStorage class uses the Licensing.IsLocalBrowserRequest() check. The result is not used anywhere though !?
RecordStorage InsertRecord method requires HttpContext.Current.Request, which is not always available
Hi,
We have code to migrate our "old" contour records to Umbraco forms.
Something like :
We can't do this, because the current line in the Umbraco.Forms.Data.Storage.RecordFieldValueStorage class uses the Licensing.IsLocalBrowserRequest() check. The result is not used anywhere though !?
Umbraco.Forms.Data.Storage.RecordFieldValueStorage:
which translates into:
Umbraco.Forms.Core.Licensing:
And there's the problem: HttpContext.Current.Request ... Which means we can't use this in the ApplicationStarting event.
Much worse, you can't do this in any (Web)ApiController!
I've logged an issue here : http://issues.umbraco.org/issue/CON-846
is working on a reply...