2
Vote

Farm Solutions do not retract properly

description

Running Redeploy with farm solutions, function WaitForJobToFinish does not handle successful retraction properly.

Given any solution deployed both on CA and a webapplication, WaitForJobToFinish loop infinitely since the exit check is $solution.Deployed -or $solution.JobExists. Now, when we retract from CA, $solution.Deployed still returns True, because of the other web app, and the loop never ends, yielding a timeout later on.

I applied a fix myself, by changing the exit condition to (($solution.DeployedWebApplications | ? {$_.Url -eq $Site }) -ne $null) -or $solution.JobExists.

This way, we're checking _if we removed the solution from the specified web applicatio_n, as it is expected, instead of globally.

comments

matein78 wrote Apr 4, 2014 at 10:23 AM

Thanks a lot for the bug report and the provided fix :)I will look at it for the next release and incorporate your patch!

Cheers

Matt

JonatanKapps wrote Jul 20, 2016 at 7:45 PM

Thanks a lot!

It solved my problem like a charm!

Why this fix isn't on the last release?? :(


Cheers from Brasil!