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(pii): Fix attachment check #4441

Merged
merged 4 commits into from
Jan 14, 2025
Merged

fix(pii): Fix attachment check #4441

merged 4 commits into from
Jan 14, 2025

Conversation

jjbayer
Copy link
Member

@jjbayer jjbayer commented Jan 10, 2025

Attachments items are not guaranteed to have an "attachment_type".

Fixes #4368.

@@ -177,6 +177,52 @@ def test_attachments_pii(mini_sentry, relay):
}


def test_attachments_pii_logfile(mini_sentry, relay):
Copy link
Member Author

Choose a reason for hiding this comment

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

This test fails without the updated attachment type check.

@jjbayer jjbayer marked this pull request as ready for review January 10, 2025 12:59
@jjbayer jjbayer requested a review from a team as a code owner January 10, 2025 12:59
@jjbayer jjbayer merged commit 1023edc into master Jan 14, 2025
26 checks passed
@jjbayer jjbayer deleted the test/pii-email-in-attachment branch January 14, 2025 07:14
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.

PII Scrubbing usernames from paths for Attachments / Minidumps not working
3 participants