Kentico / AzureStorageProvider

Replacement for standard Kentico EMS provider adding metadata caching support.
MIT License
5 stars 3 forks source link

Smart Search not able to build after implementation in v10 #9

Open bkehren opened 6 years ago

bkehren commented 6 years ago

After implementing the module in a v10.0.23 instance, the smart search module is no longer to build indexes.

I downloaded the project for v10 and added it to my project, set the references and built the solution. This worked without issue. I then published the code to my Azure Web App instance and it succeeded. I've set the web.config keys as such.

<add key="CMSAzureAccountName" value="acctname" />
<add key="CMSAzureSharedKey" value="mykey==" />
<add key="CMSAzureCDNEndpoint" value="https://mysite.azureedge.net" />
<add key="CMSAzurePublicContainer" value="true" />
<add key="CMSAzureRootContainer" value="cmsstorage" />
<add key="CMSExternalStorageName" value="azure" />
<add key="CMSStorageProviderAssembly" value="AzureStorageProvider" />
<add key="CMSAzureCachePath" value="AzureCache" />
<add key="AzureStorageProviderCacheType" value="Memory" />
<add key="AzureStorageProviderCacheClearMinutes" value="10080" />
<add key="AzureStorageProviderIgnoreLastWriteTime" value="true" />
<add key="AzureStorageProviderForceLowercase" value="true" />
<add key="AzureStorageProviderInitializeAtAppStart" value="true" />

The CDN and blob storage work perfect although NONE of the objects which should write to the /App_Data directory are writing to that directory.

epperson commented 5 years ago

@bkehren - I know I'm very late to the party on this, but this issue is caused by line 29 in AzureStorageProviderModule.cs:

StorageHelper.MapStoragePath("/", provider);

They are mapping everything to blob storage. Giving the option to select which directories are mapped would be helpful.