Fix S5693 FP: custom fileUploadSizeLimit parameter ignored when parsing Web.config files #7867
Labels
Area: C#
C# rules related issues.
Sprint: Hardening
Fix FPs/FNs/improvements
Type: False Positive
Rule IS triggered when it shouldn't be.
Milestone
FP reported on SonarCommunity by Andrew Timson.
This rule has a configurable fileUploadSizeLimit parameter. The code for the rule appears to take the parameter into account when looking at attribute-based upload limits for both request size and request form size, but not when checking the configuration in Web.config; the latter sticks to the hardcoded 8 MB limit for both.
Using SonarQube Community Edition, Version 10.1 (build 73491)
When fileUploadSizeLimit is set to 35000000, the above snippets are still flagged by the rule.
The text was updated successfully, but these errors were encountered: