dsccommunity / WebAdministrationDsc

This module contains DSC resources for deploying and configuring web servers and related components.
MIT License
160 stars 148 forks source link

xWebApplication: Fails when creating a Web Application as child under another Web Application #296

Open emitodiaz opened 7 years ago

emitodiaz commented 7 years ago

Hi! Related with xWebApplication regression in #220. PhysicalPath issue. #222 , I think that the code inside "Update Physical Path" (and "Update AppPool" ) it's not working very well when you have a Web Application inside a WebApplication, example:

WepAppPrincipal

I was testing and modifying the code inside and looks like that a checking for NULL it's missing??? (what do you think???)

this part of code: if (($PSBoundParameters.ContainsKey('PhysicalPath') -and ` $webApplication.physicalPath -ne $PhysicalPath) here I add: -and ($webApplication.physicalPath -ne $null) )

Because if I not checkin for null giveme the message: Argument Filter is null blablablabla.

Any one else having the same issue? Thanks. Emiliano.

richardgavel commented 7 years ago

I get the same issue, though it's for a WebApplication being created inside a VirtualDirectory.

johlju commented 6 years ago

I have labeled this as a bug and help wanted to that someone in the community can run with it.