From 3ea6527e5e3d5ae98120c7deaadc1a4ba84f84d6 Mon Sep 17 00:00:00 2001 From: "Nick Curran [SSW]" <132531112+ncn-ssw@users.noreply.github.com> Date: Wed, 2 Aug 2023 04:26:25 +1000 Subject: [PATCH] =?UTF-8?q?Update=20Rule=20=E2=80=9Chttphandlers-sections-?= =?UTF-8?q?in-webconfig-must-contain-a-clear-element/rule=E2=80=9D=20(#620?= =?UTF-8?q?5)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update Rule “httphandlers-sections-in-webconfig-must-contain-a-clear-element/rule” * Update rule.md * Update rule.md --------- Co-authored-by: Tiago Araújo [SSW] --- .../rule.md | 33 +++++++++---------- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/rules/httphandlers-sections-in-webconfig-must-contain-a-clear-element/rule.md b/rules/httphandlers-sections-in-webconfig-must-contain-a-clear-element/rule.md index 854297d3f55..24406f75b62 100644 --- a/rules/httphandlers-sections-in-webconfig-must-contain-a-clear-element/rule.md +++ b/rules/httphandlers-sections-in-webconfig-must-contain-a-clear-element/rule.md @@ -1,26 +1,25 @@ --- type: rule -archivedreason: -title: Do you know that 'httpHandlers' or 'httpModules' sections in web.config must contain a 'remove' or 'clear' element? -guid: 14359e59-b047-4e0b-aef5-f79ccd3eb373 +title: Do you know 'httpHandlers' or 'httpModules' sections in web.config must contain a 'remove' or 'clear' element? uri: httphandlers-sections-in-webconfig-must-contain-a-clear-element -created: 2013-02-06T12:55:03.0000000Z authors: -- title: Adam Cogan - url: https://ssw.com.au/people/adam-cogan -- title: Danijel Malik - url: https://ssw.com.au/people/danijel-malik + - title: Adam Cogan + url: https://ssw.com.au/people/adam-cogan + - title: Danijel Malik + url: https://ssw.com.au/people/danijel-malik related: [] redirects: -- do-you-know-that-httphandlers-or-httpmodules-sections-in-web-config-must-contain-a-remove-or-a-clear-element -- do-you-know-that-httphandlers-or-httpmodules-sections-in-web-config-must-contain-a-remove3f3f3f-or-a-clear-element -- https-rules-ssw-com-au-do-you-know-that-httphandlers-or-httpmodules-sections-in-web-config-must-contain-a-remove-or-a-clear-element -- you-know-that-httphandlers-or-httpmodules-sections-in-web-config-must-contain-a-remove-or-a-clear-element -- do-you-know-that-httphandlers-or-httpmodules-sections-in-web-config-must-contain-a-remove-or-clear-element - + - do-you-know-that-httphandlers-or-httpmodules-sections-in-web-config-must-contain-a-remove-or-a-clear-element + - do-you-know-that-httphandlers-or-httpmodules-sections-in-web-config-must-contain-a-remove3f3f3f-or-a-clear-element + - https-rules-ssw-com-au-do-you-know-that-httphandlers-or-httpmodules-sections-in-web-config-must-contain-a-remove-or-a-clear-element + - you-know-that-httphandlers-or-httpmodules-sections-in-web-config-must-contain-a-remove-or-a-clear-element + - do-you-know-that-httphandlers-or-httpmodules-sections-in-web-config-must-contain-a-remove-or-clear-element +created: 2013-02-06T12:55:03.000Z +archivedreason: null +guid: 14359e59-b047-4e0b-aef5-f79ccd3eb373 --- -If web.config contains a <httpHandlers> or <httpModules> section, that section must contain a <remove... /> or a <clear /> element. +If web.config contains a `` or `` section, that section must contain a `` or a `` element. This basically forces developers to explicitly enable inheritance in nested virtual directories. In 99% of cases this developers won't use inheritance on these two sections, however it causes issues when somebody wants to add a module or handler to the parent virtual directory. @@ -40,7 +39,7 @@ This basically forces developers to explicitly enable inheritance in nested virt ``` -::: +::: bad Figure: Bad example ::: @@ -59,6 +58,6 @@ Figure: Bad example ``` -::: +::: good Figure: Good example :::