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

bug-1901997: handle invalid BuildID for redacted crash reports #6777

Merged
merged 2 commits into from
Oct 31, 2024

Conversation

willkg
Copy link
Contributor

@willkg willkg commented Oct 31, 2024

If the user viewing the crash report does not have protected data access and the crash report has a crash annotation value that doesn't match our schema, then the redaction process can fail. In this scenario, Crash Stats can't recover and redact the document properly.

In bug 1901997, we were seeing this scenario when BuildID=null. Because crash annotation data comes from the crash reporter which might be running on a machine that has bad hardware, this scenario can happen with other fields.

These changes handle that scenario and shows a page indicating the crash report is malformed and providing a link the user can use to report the malformed crash report.

While doing this, I adjusted bin/process_crashes.sh so it allows you to pause it before it uploads data to the bucket. This makes it easier to adjust crash reports to test specific scenarios.

This makes it possible to adjust a crash report for testing a specific
processing scenario.
If the user viewing the crash report does not have protected data access
and the crash report has a crash annotation value that doesn't match our
schema, then the redaction process can fail. In this scenario, Crash
Stats can't recover and redact the document properly.

In bug 1901997, we were seeing this scenario when BuildID=null. Because
crash annotation data comes from the crash reporter which might be
running on a machine that has bad hardware, this scenario can happen
with other fields.

These changes handle that scenario and shows a page indicating the crash
report is malformed and providing a link the user can use to report the
malformed crash report.
@willkg willkg requested a review from a team as a code owner October 31, 2024 11:41
@willkg willkg added this pull request to the merge queue Oct 31, 2024
@willkg
Copy link
Contributor Author

willkg commented Oct 31, 2024

Thank you!

Merged via the queue into main with commit 165fd98 Oct 31, 2024
1 check passed
@willkg willkg deleted the willkg-bug-1901997-buildid branch October 31, 2024 15:25
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