Closed Bug 731828 Opened 13 years ago Closed 13 years ago

No bug data loaded on some topcrash reports, "a is undefined" JS error

Categories

(Socorro :: Webapp, task)

task
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: kairo, Unassigned)

References

()

Details

(Keywords: qawanted, regression, Whiteboard: [regression])

Attachments

(1 file)

Since 2.4.4 landed, https://crash-stats.mozilla.com/topcrasher/byversion/Firefox/10.0.2/7 doesn't load bug data any more, we never get the fixed state and bug summaries for listed bugs. In the error console or web console, the JS error "a is undefined" comes up. https://crash-stats.mozilla.com/topcrasher/byos/Firefox/10.0.2/Linux/7/browser interestingly shows the bug data and doesn't show this JS error. Here's what lonnen said on IRC about this JS error: <lonnen> on nightly, once the correlation reports start loading, I get the cryptic [14:25:03.575] a is undefined @ https://crash-stats.mozilla.com/js/jquery/jquery-1.6.4.min.js:2 <lonnen> where a is a minified var inside jquery, useless <lonnen> but possibly related to the upgrade to jquery-1.6.4 As I see this only when bug data doesn't load correctly, I think it's related to that and not to correlations, as those never load correctly, even on the pages where this error doesn't come up. I'll file yet another bug report on those.
Rhelmer and myself are unable to repro a lack of bug data. It shows up in prod without a problem. The 'a is undefined' JS error is related to the correlation reports never loading, bug 731830.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → INVALID
https://github.com/mozilla/socorro/blob/master/webapp-php/js/socorro/bugzilla.js#L17 if data is empty, data.bugs will be undefined and each will error.
Status: RESOLVED → REOPENED
Resolution: INVALID → ---
Keywords: qawanted, regression
Should spin a dot point release for this one, today preferably.
Target Milestone: --- → 2.4.4
So it looks like the correlation reports still load, the spinner animation just doesn't go away. Clicking 'show more' will reveal them. Given that, with a point release we could keep the superficial JS error from being reported without fixing the underlying problem of bugzilla metadata missing, and possibly fix the loading spinners disappearing when correlations are loaded. KaiRo has said we can wait till the next release if that's all that will be restored. I'll be putting the short term fix into the 2.5 stage branch.
This band aid will prevent the JS error, and has landed for 2.5 in the stage branch. I've filed Bug 732244 to address the deeper issue.
Status: REOPENED → RESOLVED
Closed: 13 years ago13 years ago
Resolution: --- → FIXED
See Also: → 732244
Target Milestone: 2.4.4 → 2.5
Commits pushed to master at https://github.com/mozilla/socorro https://github.com/mozilla/socorro/commit/55811731ad28094fdb7d3b8edaf9674431012a1d bug 731828 look before leaping to avoid js errors https://github.com/mozilla/socorro/commit/fc40189957e5026af53d55817b6db1aeb6a3a910 Merge pull request #406 from Lonnen/731828-regression bug 731828 look before leaping to avoid js errors
Whiteboard: [qa+]
Status: RESOLVED → VERIFIED
Whiteboard: [qa+]
Whiteboard: [regression]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: