Orchard CMS 1.9中使用长网址的路径错误无效

时间:2016-05-09 10:09:31

标签: orchardcms orchardcms-1.9

场景:多租户Orchard 1.9.3部署在单个实例Azure Web App中运行所有设置&媒体存储在Azure blob存储中。

启用文件系统输出缓存后(所有缓存项都存储在App_Data\OutputCache文件夹中,我看到条目被添加到文件夹中就好了。但是看起来有长URL的项目会抛出错误并导致500的有时这是一个很长的网址,但有时常见的广告系列管理链接(Google Analytics的UTM代码)会导致问题,因为他们使用额外的查询字符串选项制作长网址。如下所示,错误是< strong>无效路径,当它尝试在缓存中查找文件时。

以下是一些错误(请注意错误中的链接现在可用,因为我已禁用缓存并且错误消失了。)

我注意到1.9.x版本中的文件系统输出缓存发生了变化......长网址是个问题吗?

2016-05-09 00:00:17,596 [19] Orchard.OutputCache.Filters.OutputCacheFilter - Default - An unexpected error occured while reading a cache entry
 http://www.andrewconnell.com/archive/2012/07/30/sharepoint-2010-metadata-based-navigation-in-publishing-sites-series-overview.aspx
System.ArgumentException: Invalid path
   at Orchard.Validation.PathValidation.ValidatePath(String basePath, String mappedPath) in C:\Orchard\src\Orchard\Validation\PathValidation.cs:line 29
   at Orchard.FileSystems.AppData.AppDataFolder.CombineToPhysicalPath(String[] paths) in C:\Orchard\src\Orchard\FileSystems\AppData\AppDataFolder.cs:line 95
   at Orchard.FileSystems.AppData.AppDataFolder.FileExists(String path) in C:\Orchard\src\Orchard\FileSystems\AppData\AppDataFolder.cs:line 158
   at Orchard.OutputCache.Services.FileSystemOutputCacheStorageProvider.<>c__DisplayClass12_0.<GetCacheItem>b__0()
   at Orchard.OutputCache.Services.FileSystemOutputCacheStorageProvider.Retry[T](Func`1 action)
   at Orchard.OutputCache.Services.FileSystemOutputCacheStorageProvider.GetCacheItem(String key)
   at Orchard.OutputCache.Filters.OutputCacheFilter.GetCacheItem(String key)
2016-05-09 00:00:17,628 [19] Orchard.OutputCache.Filters.OutputCacheFilter - Default - An unexpected error occured while reading a cache entry
 http://www.andrewconnell.com/archive/2012/07/30/sharepoint-2010-metadata-based-navigation-in-publishing-sites-series-overview.aspx
System.ArgumentException: Invalid path
   at Orchard.Validation.PathValidation.ValidatePath(String basePath, String mappedPath) in C:\Orchard\src\Orchard\Validation\PathValidation.cs:line 29
   at Orchard.FileSystems.AppData.AppDataFolder.CombineToPhysicalPath(String[] paths) in C:\Orchard\src\Orchard\FileSystems\AppData\AppDataFolder.cs:line 95
   at Orchard.FileSystems.AppData.AppDataFolder.FileExists(String path) in C:\Orchard\src\Orchard\FileSystems\AppData\AppDataFolder.cs:line 158
   at Orchard.OutputCache.Services.FileSystemOutputCacheStorageProvider.<>c__DisplayClass12_0.<GetCacheItem>b__0()
   at Orchard.OutputCache.Services.FileSystemOutputCacheStorageProvider.Retry[T](Func`1 action)
   at Orchard.OutputCache.Services.FileSystemOutputCacheStorageProvider.GetCacheItem(String key)
   at Orchard.OutputCache.Filters.OutputCacheFilter.GetCacheItem(String key)
2016-05-09 00:00:32,565 [30] Orchard.OutputCache.Filters.OutputCacheFilter - mscloudshow - An unexpected error occured while reading a cache entry
 http://www.microsoftcloudshow.com/blog/episode-087-catching-up-with-paul-schaeflein-on-azure-ad-improvements?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed:+MicrosoftCloudShow+(Microsoft+Cloud+Show)
System.ArgumentException: Invalid path
   at Orchard.Validation.PathValidation.ValidatePath(String basePath, String mappedPath) in C:\Orchard\src\Orchard\Validation\PathValidation.cs:line 29
   at Orchard.FileSystems.AppData.AppDataFolder.CombineToPhysicalPath(String[] paths) in C:\Orchard\src\Orchard\FileSystems\AppData\AppDataFolder.cs:line 95
   at Orchard.FileSystems.AppData.AppDataFolder.FileExists(String path) in C:\Orchard\src\Orchard\FileSystems\AppData\AppDataFolder.cs:line 158
   at Orchard.OutputCache.Services.FileSystemOutputCacheStorageProvider.<>c__DisplayClass12_0.<GetCacheItem>b__0()
   at Orchard.OutputCache.Services.FileSystemOutputCacheStorageProvider.Retry[T](Func`1 action)
   at Orchard.OutputCache.Services.FileSystemOutputCacheStorageProvider.GetCacheItem(String key)
   at Orchard.OutputCache.Filters.OutputCacheFilter.GetCacheItem(String key)
2016-05-09 00:00:32,581 [30] Orchard.OutputCache.Filters.OutputCacheFilter - mscloudshow - An unexpected error occured while reading a cache entry
 http://www.microsoftcloudshow.com/blog/episode-087-catching-up-with-paul-schaeflein-on-azure-ad-improvements?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed:+MicrosoftCloudShow+(Microsoft+Cloud+Show)
System.ArgumentException: Invalid path
   at Orchard.Validation.PathValidation.ValidatePath(String basePath, String mappedPath) in C:\Orchard\src\Orchard\Validation\PathValidation.cs:line 29
   at Orchard.FileSystems.AppData.AppDataFolder.CombineToPhysicalPath(String[] paths) in C:\Orchard\src\Orchard\FileSystems\AppData\AppDataFolder.cs:line 95
   at Orchard.FileSystems.AppData.AppDataFolder.FileExists(String path) in C:\Orchard\src\Orchard\FileSystems\AppData\AppDataFolder.cs:line 158
   at Orchard.OutputCache.Services.FileSystemOutputCacheStorageProvider.<>c__DisplayClass12_0.<GetCacheItem>b__0()
   at Orchard.OutputCache.Services.FileSystemOutputCacheStorageProvider.Retry[T](Func`1 action)
   at Orchard.OutputCache.Services.FileSystemOutputCacheStorageProvider.GetCacheItem(String key)
   at Orchard.OutputCache.Filters.OutputCacheFilter.GetCacheItem(String key)

0 个答案:

没有答案