Closed
Bug 299736
Opened 20 years ago
Closed 20 years ago
Manual "Check for Updates" finds updates when none exist; gets stuck / tries "Connecting to server..." foreever
Categories
(Toolkit :: Application Update, defect)
Tracking
()
RESOLVED
FIXED
mozilla1.8final
People
(Reporter: beltzner, Assigned: darin.moz)
References
Details
(Keywords: fixed1.8)
Attachments
(1 file)
1.09 KB,
patch
|
bugs
:
review+
benjamin
:
approval-aviary1.1a2+
|
Details | Diff | Splinter Review |
To reproduce:
1. Install a Deer Park build from the day before (earliest: 20050704)
2. In about:config, replace the value of app.update.url with
"https://aus-staging.mozilla.org:8711/update2/0/%PRODUCT%/%VERSION%/%BUILD_ID%/%BUILD_TARGET%/%LOCALE%/update.xml"
3. Under Help menu, select "Check for Updates ..."
4. Accept the certificates, install the update
5. Restart the browser
6. Under Help menu, select "Check for Updates ..."
Expected Results:
No update should be found.
Actual Results:
Update is found, but when you try clicking "Install" the software update UI
tries "Connecting to Server ..." forever (and the throbber doesn't throb).
Clicking "Back" from this point results in a blank wizard page with the title
"Software Update" and "Finish" and "Cancel" buttons. The "Finish" button is
enabled and set to default action. Clicking "Finish" or "Cancel" does nothing,
and the window can only be closed using the w32 window close button.
Notes:
- you can also reproduce this bug by downloading a latest-trunk build and
forcing a check for software updates.
- I haven't seen the software update announce an available update without being
forced to check, but I haven't really let Deer Park run for any serious length
of time
(confirmed by mcsmurf in #developers)
Comment 1•20 years ago
|
||
The problem is probably this:
<updates>
<update type="minor" version="1.0+" extensionVersion="1.0+">
</update>
</updates>
The server sends an empty update, so FF thinks there is a update. I think we
should fix the server ;)
Assignee | ||
Updated•20 years ago
|
Status: NEW → ASSIGNED
Flags: blocking1.8b3?
Assignee | ||
Updated•20 years ago
|
Assignee: nobody → darin
Status: ASSIGNED → NEW
Target Milestone: --- → Firefox1.1
Updated•20 years ago
|
Flags: blocking1.8b3? → blocking1.8b3+
Comment 2•20 years ago
|
||
Need to get verification on what the client interprets as "no updates available"
and change server output to that. Darin will provide info on what the client
expects to see in that case.
Assignee | ||
Comment 3•20 years ago
|
||
I believe that the correct server response is an XML file containing just an
empty updates tag: <updates/>
It gets confused when <update> elements appear with missing attributes.
Assignee | ||
Comment 4•20 years ago
|
||
-> chase for server side changes
Assignee: darin → chase
Status: ASSIGNED → NEW
Comment 5•20 years ago
|
||
https://aus-staging.mozilla.org:8711/update2/0/Firefox/1.0.4/2005070505/Linux_x86-gcc3/en-US/update.xml
An incorrect assumption was made about the update block -- now an empty update
does not show any update block unless the patch information is available. Does
that work properly?
Comment 6•20 years ago
|
||
It seems that updating when you already have the latest now gives a 404 error.
Updated•20 years ago
|
Assignee: chase → mike.morgan
Comment 7•20 years ago
|
||
I've tested different combinations and as far as I can tell, if Software Update
sees:
<?xml version="1.0"?>
<updates>
</updates>
Firefox intereprets that as a 404 error instead of "There are no updates available".
So my question then becomes -- what output should AUS give in update.xml that
signifies to the client that an update is not available?
Status: NEW → ASSIGNED
Comment 8•20 years ago
|
||
(In reply to comment #7)
> <?xml version="1.0"?>
> <updates>
> </updates>
>
> Firefox intereprets that as a 404 error instead of "There are no updates
available".
Note that <updates/> and a blank XML document also caused 404 errors in the user
interface.
Comment 9•20 years ago
|
||
It's not a problem of update.xml needing to give different output to indicate
that no updates are available, it's that the updater itself fails to have any
provision for dealing with the fact that no updates may be available. See
http://lxr.mozilla.org/seamonkey/source/toolkit/mozapps/update/src/nsUpdateService.js.in#1530.
Comment 10•20 years ago
|
||
Zach, unless I'm reading the code wrong
http://lxr.mozilla.org/seamonkey/source/toolkit/mozapps/update/src/nsUpdateService.js.in#1523
should return an empty array without throwing, from
http://lxr.mozilla.org/seamonkey/source/toolkit/mozapps/update/src/nsUpdateService.js.in#1497
Assignee | ||
Comment 11•20 years ago
|
||
-> over to me for client side investigation. i think we are happy with what AUS
is currently outputing in this case. thanks mike!
Assignee: morgamic → darin
Status: ASSIGNED → NEW
Assignee | ||
Comment 12•20 years ago
|
||
Attachment #188444 -
Flags: review?(bugs)
Comment 13•20 years ago
|
||
Attachment #188444 -
Flags: review?(bugs) → review+
Assignee | ||
Updated•20 years ago
|
Attachment #188444 -
Flags: approval-aviary1.1a2?
Updated•20 years ago
|
Attachment #188444 -
Flags: approval-aviary1.1a2? → approval-aviary1.1a2+
Assignee | ||
Comment 14•20 years ago
|
||
fixed-on-trunk
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Updated•16 years ago
|
Product: Firefox → Toolkit
You need to log in
before you can comment on or make changes to this bug.
Description
•