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

WebProxy suppresses UnsupportedOSPlatform("browser") but throws PNSE #50362

Closed
stephentoub opened this issue Mar 29, 2021 · 3 comments
Closed
Milestone

Comments

@stephentoub
Copy link
Member

stephentoub commented Mar 29, 2021

If WebProxy.BypassProxyOnLocal is set to true, use of any non-IP address or a non-loopback IP address in the supplied Uri will result in a PlatformNotSupportedException, but all CA1416 warnings are being suppressed. Is this the desired behavior? Seems like at a minimum the public BypassProxyOnLocal should be marked as unsupported on browser, but that won't catch use of the ctors that accept BPOL.

@dotnet-issue-labeler dotnet-issue-labeler bot added area-System.Net untriaged New issue has not been triaged by the area owner labels Mar 29, 2021
@ghost
Copy link

ghost commented Mar 29, 2021

Tagging subscribers to this area: @dotnet/ncl
See info in area-owners.md if you want to be subscribed.

Issue Details

If WebProxy.BypassProxyOnLocal is set to true, use of any non-IP address or a non-loopback IP address in the supplied Uri will result in a PlatformNotSupportedException, but all CA1416 warnings are being suppressed. Is this the desired behavior? Seems like at a minimum the public BypassProxyOnLocal should be marked as unsupported on browser.

Author: stephentoub
Assignees: -
Labels:

area-System.Net, untriaged

Milestone: -

@stephentoub
Copy link
Member Author

Related to #43751.

@stephentoub
Copy link
Member Author

Actually, I'll just dup this against #43751.

@ghost ghost locked as resolved and limited conversation to collaborators Apr 28, 2021
@karelz karelz added this to the 6.0.0 milestone May 20, 2021
@karelz karelz removed the untriaged New issue has not been triaged by the area owner label Oct 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants