SPC020201: Do not update list of blocked extensions

The assembly should not access property Microsoft.SharePoint.Administration.SPWebApplication.BlockedFileExtensions and also update the web application. The rule assumes that the list of blocked file extensions has been changed by the code.

TypeName: DoNotUpdateBlockedFileExtensions
CheckId: SPC020201
Severity: CriticalWarning
Type: AssemblyFileReference

Remove calls to method Update() of Microsoft.SharePoint.Administration.SPWebApplication.BlockedFileExtensions.


The rule cannot check if the list of blocked file extensions 'Microsoft.SharePoint.Administration.SPWebApplication.BlockedFileExtensions' has been changed, because the list is a simple string list. But if Microsoft.SharePoint.Administration.SPWebApplication.Update is called in the same assembly it is assumed that the list may have changed

comments powered by Disqus