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

fix: getIpFamily - do not expect specific error for clients without IPv6 #120

Merged
merged 1 commit into from
Jan 17, 2022

Conversation

michelkaporin
Copy link
Contributor

@michelkaporin michelkaporin commented Jan 14, 2022

What does this PR do?

This PR is a replacement for previous PR to fix the regression for IPv6 clients. We've noticed that some of the clients who don't have full IPv6 supports started to authenticate using IPv6 which broke their VS Code extension.

Some users encountered ENETUNREACH error instead of EADDRNOTAVAIL as wrongly assumed in the previous fix PR. Thus we shouldn't rely on specific error, rather on an error. This is how it was before the refactoring around http took place and is consistent with Snyk CLI code.

Where should the reviewer start?

How should this be manually tested?

Any background context you want to provide?

This fixes the following issues:
https://snyk.slack.com/archives/C026PS65XA8/p1642092098003500
https://snyk.slack.com/archives/C01FA88CUU9/p1641979366003300?thread_ts=1641978929.003100&cid=C01FA88CUU9
https://github.com/snyk/vscode-extension/issues/132 🤞

Screenshots

Additional questions

@michelkaporin michelkaporin force-pushed the fix/auth-getIpFamily-other-exceptions branch from 230ee1b to f4ff9a5 Compare January 14, 2022 12:47
@michelkaporin michelkaporin marked this pull request as ready for review January 14, 2022 12:47
@michelkaporin michelkaporin requested a review from a team as a code owner January 14, 2022 12:47
@michelkaporin michelkaporin requested a review from pkey January 14, 2022 12:47
@michelkaporin michelkaporin changed the title fix: do not expect specific error for clients without IPv6 fix: getIpFamily - do not expect specific error for clients without IPv6 Jan 14, 2022
Copy link
Contributor

@saark-snyk saark-snyk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would appreciate adding some tests to verify this behavior

@ghost
Copy link

ghost commented Jan 17, 2022

This PR modifies files linked to issues tracked in Stepsize.

You might want to review their status, priority, and scope.

 Mention [stepsize] in a comment if you'd like to report some technical debt. See examples here.

@michelkaporin michelkaporin force-pushed the fix/auth-getIpFamily-other-exceptions branch from 3acde7a to 52acd8f Compare January 17, 2022 14:45
@michelkaporin michelkaporin merged commit a4ffee2 into master Jan 17, 2022
@michelkaporin michelkaporin deleted the fix/auth-getIpFamily-other-exceptions branch January 17, 2022 14:53
@snyksec
Copy link

snyksec commented Jan 17, 2022

🎉 This PR is included in version 4.5.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants