-
Notifications
You must be signed in to change notification settings - Fork 909
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
Proxy bypass list with "*" will still return regex quantifier parsing errors with version 0.10.11 #1631
Comments
@johlandabee can you provide a log showing a repro of this? It will be helpful to see where this is occurring so we can determine why it's not getting set properly. |
@ferventcoder I got the same error on version 0.10.11. What is interesting it's not happening for every app. In my case I was able to install 7zip.install or googlechrome, but installation of vscode fails every time. |
@ferventcoder Here's a log (choco.log) running the following command: |
@johlandabee I don't think the current behaviour is wrong, because the regular expression |
@johlandabee can you verify if you make the change that @t0r0X mentioned to make it valid regex that it works appropriately? If so we can add some documentation to show this particular example. |
@ferventcoder I've just taken my answer from #1532. Maybe you can close this issue so we can continue the discussion there?
A workaroundish solution would be to add a config flag to ignore set environment variables as the system proxy (auto config script) works properly. Or maybe honor system settings - if set - over environment vars? |
From my understanding, this is still unresolved as Windows (or at least PowerShell) seems to interpret the system's bypass list as non-regex wheras Chocolatey inherits it, but misinterprets it as regex. Reproduction:
Current workaround for me:
Suggested solution:
Quick and dirty solution:
|
@boernsen-development thank you for providing this information. I have done some digging, and I think I see what you're seeing and why you might be seeing it. In all of my testing, I do not believe Windows PowerShell uses any of the "proxy" environment variables, and so setting Unfortunately, as noted in the documentation, the proxy bypass settings may not work when set through the system interface, so your best bet is likely to set the config option as you've noted. I have opened issues #3401 and chocolatey/docs#954 to clarify the documentation that the Bypass list is treated as a regex. |
I have found several ways to set the Windows Proxy and I don't know the exact differences, but it seems using different methods lead to different problems, so it might be helpful to clarify that in the documentation as well (i.e. recommend to set the Choco Proxy explicitely or clarify which Windows proxy settings are inherited in which syntax and which are not). It is quiet confusing to me. I came across these to show the different settings: (e.g. as discussed at https://superuser.com/questions/709096/how-can-i-change-the-system-proxy-from-the-command-line/709103) At least for the netsh variant, I had |
I thought the issue reported here was still ocurring, but I am not able to reproduce the reported error on either Chocolatey CLI 1.4.0 or 2.2.2. We've also updated the documentation around proxies to be more explicit about how it works, and what order of precedence settings are considered in. As such, I'll go ahead and close this issue. If it's still an issue and we can reproduce it, we can reopen it. |
Just created a new issue to raise attention for #1532 which is still a problem and not fixed as the merge was rejected.
Here an example:
The proxy is configured using http_proxy environment variables.
The text was updated successfully, but these errors were encountered: