Closed Bug 546593 Opened 15 years ago Closed 14 years ago

If both a partial and complete update have a verification failure this._update is null, the UI breaks, and the user is not notified of the update failure

Categories

(Toolkit :: Application Update, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla2.0b7
Tracking Status
status1.9.2 --- .11-fixed
status1.9.1 --- wontfix

People

(Reporter: robert.strong.bugs, Assigned: robert.strong.bugs)

References

Details

Attachments

(5 files, 2 obsolete files)

and the update UI totally fails... looks like another old bug that just hasn't hit us before. Happens when trying to set the statusText this._update.statusText = message http://mxr.mozilla.org/mozilla-central/source/toolkit/mozapps/update/nsUpdateService.js#2513
Attached patch patch rev1 (obsolete) (deleted) — Splinter Review
Assignee: nobody → robert.bugzilla
Status: NEW → ASSIGNED
Attachment #472125 - Flags: review?(dolske)
Comment on attachment 472125 [details] [diff] [review] patch rev1 hmmm... I can add a test for this
Attachment #472125 - Attachment is obsolete: true
Attachment #472125 - Flags: review?(dolske)
Attached image screenshot - trunk failure (deleted) —
For reference, this is what happens on trunk when this fails... the downloading page doesn't go to the errors page.
Summary: If both a partial and complete update have a verification failure this._update is null → If both a partial and complete update have a verification failure this._update is null, the UI breaks, and the user is not notified of the error
blocking1.9.2: --- → ?
Summary: If both a partial and complete update have a verification failure this._update is null, the UI breaks, and the user is not notified of the error → If both a partial and complete update have a verification failure this._update is null, the UI breaks, and the user is not notified of the update failure
Attached patch patch rev1 with tests (deleted) — Splinter Review
dolske, could you please review this? A couple of notes: I cleaned up a couple of tests that aren't part of this bug so they would create the active-update.xml with the correct value for isCompleteUpdate for the update. The isCompleteUpdate value would get set correctly by the update service later but I wanted to fix it so the initial value was correct since it could potentially hide a bug that wouldn't get caught by the tests. I had to change gWindowObserver so it always added a load listener for every window opened since an alert will be displayed before the update UI for test_0074_notify_verifyFailPartial_successComplete.xul.
Attachment #472333 - Flags: review?(dolske)
(In reply to comment #5) >... > I had to change gWindowObserver so it always added a load listener for every > window opened since an alert will be displayed before the update UI for s/alert/alert service notification/
Comment on attachment 472333 [details] [diff] [review] patch rev1 with tests Talked with Dave and he said he could review this.
Attachment #472333 - Flags: review?(dolske) → review?(dtownsend)
When this happens does the user get updated or does it error out? Do we really need to take this on 1.9.1 as well? If so, then this wasn't fallout from backporting update changes from trunk?
When this happens with a manual check the UI breaks in that the UI is stuck on the page in the screenshot or if the client hides the ui during the download the user won't be notified of the error. This does affect 1.9.1. This pre-existed the backport of update changes from trunk and is not fallout from the backporting of changes from the trunk to 1.9.2. This bug will happen if releng released an update with a different file hash than the one in the update snippet which is extremely unlikely hence why this has never been caught before. It would also happen if the client had software that modified in a non-fatal way since that would change the file hash and in this case the user would get stuck in the ui shown in the screenshot. I don't think it is critical to fix this on 1.9.2 but since the changes on the client side are rather minimal and the changes are well tested I think it is a good candidate for 1.9.2. Since 1.9.1 doesn't have the app update test infrastructure I would prefer not fixing this on 1.9.1.
btw: I am slightly concerned that this bug has manifested itself in other broken behavior in the past and is possibly the cause of other bugs that I haven't been able to determine the root cause for.
Attachment #472333 - Flags: review?(dtownsend) → review+
Attachment #472333 - Flags: approval2.0+
Attached patch patch - ready to import (deleted) — Splinter Review
Attachment #473404 - Flags: review+
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Flags: in-testsuite+
Flags: in-litmus-
Resolution: --- → FIXED
Target Milestone: --- → mozilla2.0b6
Not "blocking" 1.9.2 but it sounds worth taking if you come up with a backported patch and request approval.
blocking1.9.2: ? → ---
Attached patch patch for 1.9.2 with tests (obsolete) (deleted) — Splinter Review
Attachment #476429 - Flags: review+
Attachment #476429 - Flags: approval1.9.2.11?
Attached patch patch for 1.9.2 with tests (deleted) — Splinter Review
Forgot to disable debugging
Attachment #476429 - Attachment is obsolete: true
Attachment #476430 - Flags: review+
Attachment #476430 - Flags: approval1.9.2.11?
Attachment #476429 - Flags: approval1.9.2.11?
Attachment #476430 - Flags: approval1.9.2.11? → approval1.9.2.11+
Depends on: 603110
No longer depends on: 603110
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: