You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WebConfigPropertyCollection needs to allow null or empty strings for specific collection items like '/system.webServer/security/requestFiltering/hiddenSegments'
#631
Open
aburke-incomm opened this issue
Jan 15, 2024
· 0 comments
VERBOSE: [localhost]: LCM: [ Start Resource ] [[WebConfigPropertyCollection]###localhost - Add appsettings JSON to hiddensegments] VERBOSE: [localhost]: LCM: [ Start Test ] [[WebConfigPropertyCollection]###localhost - Add appsettings JSON to hiddensegments] VERBOSE: [localhost]: [[WebConfigPropertyCollection]###localhost - Add appsettings JSON to hiddensegments] Checking for the existence of property "@()" in collection item "hiddenSegments/add" with key "segment=appsettings.json" using filter "/system.webServer/security/requestFiltering" located at "MACHINE/WEBROOT/APPHOST". VERBOSE: [localhost]: [[WebConfigPropertyCollection]###localhost - Add appsettings JSON to hiddensegments] Property "@()" has not been found. VERBOSE: [localhost]: LCM: [ End Test ] [[WebConfigPropertyCollection]###localhost - Add appsettings JSON to hiddensegments] in 0.0090 seconds. VERBOSE: [localhost]: LCM: [ Start Set ] [[WebConfigPropertyCollection]###localhost - Add appsettings JSON to hiddensegments]
VERBOSE: [localhost]: [[WebConfigPropertyCollection]###localhost - Add appsettings JSON to hiddensegments] Checking for the existence of property "@()" in collection item "hiddenSegments/add" with key "segment=appsettings.json" using filter "/system.webServer/security/requestFiltering" located at "MACHINE/WEBROOT/APPHOST".
VERBOSE: [localhost]: [[WebConfigPropertyCollection]###localhost - Add appsettings JSON to hiddensegments] Collection item "hiddenSegments/add" with key "segment=appsettings.json" exists, editing property "@()". WARNING: [localhost]: [[WebConfigPropertyCollection]###localhost - Add appsettings JSON to hiddensegments] Property @() is not found on /system.webServer/security/requestFiltering/hiddenSegments/add[@segment='appsettings.json'].
VERBOSE: [localhost]: LCM: [ End Set ] [[WebConfigPropertyCollection]###localhost - Add appsettings JSON to hiddensegments] in 1.0620 seconds.
VERBOSE: [localhost]: LCM: [ End Resource ] [[WebConfigPropertyCollection]###localhost - Add appsettings JSON to hiddensegments]
VERBOSE: [localhost]: LCM: [ End Set ]
VERBOSE: [localhost]: LCM: [ End Set ] in 1.5670 seconds.
Allow both ItemPropertyName and ItemPropertyValueto be empty if required or have some other bypass variable. Without this capability the hiddenSegments entry will always return false and DSC config will fail.
Operating system the target node is running
Windows Server 2022
PowerShell version and build the target node is running
Problem description
Test-DSCResource fails as there is NO PROPERTY for this collection, only values under the add segment
Verbose logs
DSC configuration
Suggested solution
Allow both ItemPropertyName and ItemPropertyValue to be empty if required or have some other bypass variable. Without this capability the hiddenSegments entry will always return false and DSC config will fail.
Operating system the target node is running
PowerShell version and build the target node is running
WebAdministrationDsc version
The text was updated successfully, but these errors were encountered: