-
Notifications
You must be signed in to change notification settings - Fork 223
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug-1901997: handle invalid BuildID for redacted crash reports (#6777)
* Add support for --pause to process_crashes.sh This makes it possible to adjust a crash report for testing a specific processing scenario. * bug-1901997: handle invalid BuildID for redacted crash reports 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.
- Loading branch information
Showing
4 changed files
with
92 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
webapp/crashstats/crashstats/jinja2/crashstats/report_index_malformed_raw_crash.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{% extends "crashstats_base.html" %} | ||
|
||
{% block content %} | ||
<div id="mainbody"> | ||
<div class="page-heading"> | ||
<h2>Crash Report Malformed</h2> | ||
</div> | ||
<div class="panel"> | ||
<div class="body"> | ||
<p> | ||
The crash report you requested is malformed in some way such that it | ||
cannot be shown. | ||
</p> | ||
<p> | ||
If you need to see this crash report, please | ||
<a href="https://bugzilla.mozilla.org/enter_bug.cgi?{{ make_query_string(product='Socorro', component='Webapp', bug_file_loc=request.build_absolute_uri()) }}">submit a bug</a> | ||
describing what happened, and please include the URL for this page. | ||
</p> | ||
</div> | ||
</div> | ||
</div> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters