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

Stop sending raw exception message as part of Stripe user agent. #736

Merged
merged 3 commits into from
Oct 8, 2021

Conversation

dcr-stripe
Copy link
Contributor

@dcr-stripe dcr-stripe commented Oct 7, 2021

Notify

r? @richardm-stripe
cc @remi-stripe

Summary

Updates user agent generation to avoid sending the raw exception message when calling platform methods to determine user agent components. Instead just send "(disabled)" for the failed fields.

Test plan

Added unit test.

Copy link
Contributor

@richardm-stripe richardm-stripe left a comment

Choose a reason for hiding this comment

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

Looks good, just fix the formatting error. We could also send a string like "Unavailable", too.

@richardm-stripe
Copy link
Contributor

Oh looks like you fixed the formatting! LGTM!

@richardm-stripe
Copy link
Contributor

@dcr-stripe
Copy link
Contributor Author

Fixed formatting, removed the with: from the test (as it wasn't supported in all versions), and updated from None -> "(disabled)".

PTAL @richardm-stripe

@dcr-stripe dcr-stripe merged commit 3b917dc into master Oct 8, 2021
@dcr-stripe dcr-stripe deleted the dcr-crash-wrapper branch October 8, 2021 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants