Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Omnitruck Windows install.ps1 script breaks when no_proxy contains *.domain #330

Open
rlaveycal opened this issue Sep 2, 2020 · 0 comments
Labels
Status: Untriaged An issue that has yet to be triaged. Type: Bug Does not work as expected.

Comments

@rlaveycal
Copy link
Contributor

Version:

Omnitruck

Environment:

Windows

Scenario:

Running the omnitruck script fails if the $env:no_proxy environment variable contains wildcard domain entries like *.chef.io.

Steps to Reproduce:

The cause is the Get-WebContentOnFullNet helper function. It doesn't sanitise the setting of $proxy.BypassList which must be an array of regular expressions.

$proxy = New-Object -TypeName System.Net.WebProxy

$proxy.BypassList = @( "*.chef.io" ) # will fail

$proxy.BypassList = @( "\*.chef.io" ) # will work

$proxy.BypassList = @( " *.chef.io" ) # also works

Expected Result:

Chef is installed

Actual Result:

Exception thrown - Exception setting "BypassList": "parsing "*.chef.io" - Quantifier {x,y} following nothing."

@rlaveycal rlaveycal added Status: Untriaged An issue that has yet to be triaged. Type: Bug Does not work as expected. labels Sep 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Untriaged An issue that has yet to be triaged. Type: Bug Does not work as expected.
Projects
None yet
Development

No branches or pull requests

1 participant