Closed
Bug 166448
Opened 23 years ago
Closed 23 years ago
Software Update Notification dialog never supposed to show, but does periodically
Categories
(SeaMonkey :: UI Design, defect, P1)
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla1.2beta
People
(Reporter: samir_bugzilla, Assigned: samir_bugzilla)
References
Details
Attachments
(2 files, 4 obsolete files)
1.75 KB,
patch
|
law
:
review+
dveditz
:
superreview+
jesup
:
approval+
|
Details | Diff | Splinter Review |
8.16 KB,
patch
|
harishd
:
review+
dveditz
:
superreview+
|
Details | Diff | Splinter Review |
Summary:
The Software Update Notification dialog is never supposed to show up on MacOS
X. Instead it shows up every time we check for an update (~1week), reporting
that an update is available even though one is not. This symptom only affects
Netscape builds although the code is in the mozilla tree (work in progress for
mozilla).
To repro:
Just wait 7-13 days or follow a complicated and detailed set of steps that I
won't list here.
Actual results:
approx. every week a dialog will popup informing users that a browser update is
available and offering a button to click that will take them to download the
newest version(and it will).
Expected results:
Absolutely nothing. Updates should fail silently on MacOSX.
Platform info:
MacOS X specific. branch and logically the trunk. tested with 2002082305 branch
build (rtm candidate).
Original report:
<http://bugscape/show_bug.cgi?id=19560> by Claudius Gayle.
Assignee | ||
Updated•23 years ago
|
QA Contact: paw → claudius
Assignee | ||
Updated•23 years ago
|
Priority: -- → P1
Target Milestone: --- → mozilla1.2beta
Assignee | ||
Comment 1•23 years ago
|
||
Check is we are on Mac OS X and don't register the update notifier component if
so.
Assignee | ||
Comment 2•23 years ago
|
||
Attachment #98003 -
Attachment is obsolete: true
Comment 3•23 years ago
|
||
Comment on attachment 98062 [details] [diff] [review]
Fail silently if old installation file not found.
sr=dveditz
Attachment #98062 -
Flags: superreview+
Comment on attachment 98062 [details] [diff] [review]
Fail silently if old installation file not found.
r=law
Attachment #98062 -
Flags: review+
Updated•23 years ago
|
OS: Windows 2000 → MacOS X
Hardware: PC → Macintosh
Comment 5•23 years ago
|
||
Comment on attachment 98062 [details] [diff] [review]
Fail silently if old installation file not found.
a=rjesup@wgate.com
Attachment #98062 -
Flags: approval+
Assignee | ||
Comment 6•23 years ago
|
||
Fix checked into trunk.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Comment 7•23 years ago
|
||
Making blocker for Blackbird meta. Please hold checkin until you get the go
ahead to avoid probs with other branch dwellers.
Blocks: blackbird
Comment 8•23 years ago
|
||
Please add the adt1.0.2 keyword when a branch patch is ready
Comment 9•23 years ago
|
||
Samir, I believe you have a branch patch ready. Can you please check it in, or
else let me know it's not ready?
Assignee | ||
Comment 11•23 years ago
|
||
Reopening so that we can make this more robust: use Necko if we are suspicious
of XPInstall results.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 12•23 years ago
|
||
samir, there is not time to make this more robust. Dan can you review the
original patch and weigh in on whether we can use that or need to think about
dropping the feature?
Assignee | ||
Comment 13•23 years ago
|
||
Assignee | ||
Comment 14•23 years ago
|
||
Same patch as above modulo dump statements removed.
Attachment #100960 -
Attachment is obsolete: true
Comment 15•23 years ago
|
||
Added adt1.0.2. Dan can you please review this patch? Samir, thanks!
Keywords: adt1.0.2
Assignee | ||
Comment 16•23 years ago
|
||
We now parse the vendorSub portion of the version accounting for leading
zeroes, only zeroes, and no leading zeroes. Thanks to Dan for pointing this
out.
x.0 => x.0.0
x.0y => x.0.y
x.y => x.y.0
x.y0 => x.y0.0
Attachment #100961 -
Attachment is obsolete: true
Comment 17•23 years ago
|
||
Comment on attachment 101337 [details] [diff] [review]
Fix version parsing.
r=law
This is extremely well-written code (or at least easy-to-understand code). You
did misspell "contrcutor" but personally I don't get to worked up about such
things.
Attachment #101337 -
Flags: review+
Assignee | ||
Comment 18•23 years ago
|
||
Thanks for the review Bill. Spelling error corrected in my local patch.
Comment 19•23 years ago
|
||
er, this is a Mozilla bug and Mozilla doesn't have a vendorSub. Should you add a
backup plan, like try to parse the rv: version if no vendorSub? Other vendors
might use versions that look like "X.0.Y", or less likely even just "X" with no
dots or something like a.b.c.d -- would your code handle those cases?
Assignee | ||
Comment 20•23 years ago
|
||
My code will handle the x-only case by just using x and appending "." +
productSub yielding x.productSub.
The x.0.y case becomes hairy as does a.b.c.d because they simply come back with
a .0 tacked on yielding a.b.c.d.0, for example.
Having said that, I agree this approach is not general. In fact it's brittle
nature makes me nervous. It is very specific. Maybe we need to find the reason
why we are getting the NOT_FOUND error from the InstallTrigger code and continue
to rely on that? Then I won't have to make these changes.
Alternatively, I could morph the format of the updates.rdf entirely to eliminate
registryName and use vendorSub and productSub and just do comparisons on those.
Looking for any suggestions on a comprehensive, general solution.
Assignee | ||
Comment 21•23 years ago
|
||
Synthesize version from misc's rv: value and the productSub. Upon discussion
with dveditz we arrived at this solution since it will be usable by any Gecko
vendor/embeddor.
Attachment #101337 -
Attachment is obsolete: true
Assignee | ||
Updated•23 years ago
|
Status: REOPENED → ASSIGNED
Comment 22•23 years ago
|
||
Comment on attachment 102038 [details] [diff] [review]
Use necko version, take 3.
>+ synthesized += ((len >= i+1) ? parts[i] : "0") + ".";
nit: this would be more efficient as (len > i) to avoid extra calculation in
the loop. Not a big deal since this loop only goes 3 times through but things
like this can make a huge difference in JS performance for larger loops.
sr=dveditz
Attachment #102038 -
Flags: superreview+
Comment 23•23 years ago
|
||
Comment on attachment 102038 [details] [diff] [review]
Use necko version, take 3.
>+ if (onlyVer && onlyVer.length >= 2)
Add a comment why you're checking for onlyVer's length to be >=2.
With that r=harishd
Attachment #102038 -
Flags: review+
Comment 24•23 years ago
|
||
Please land on the 1.0 branch and add the fixed1.0.2 keyword. Since this is not
shipped in Mozilla builds (yet) I'm going to guess you don't actually need a=
for the branch.
Assignee | ||
Comment 25•23 years ago
|
||
Fix checked in on branch and trunk.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago → 23 years ago
Keywords: fixed1.0.2
Resolution: --- → FIXED
Comment 26•23 years ago
|
||
I checked on windows 2000, linux redhat 7.3, mac os 9.2.2,netscape branch build:
2002-10-09-05-1.0)
Step #1: (client side)
(1) Install the 2002-10-09-05-1.0
(2) Go to C:\Builds\1009080510\chrome\US.jar
(3) On windows, use winzip to extract the files.
(4) The "LOCAL" folder is already unzipped.
(5) Go to C:\Builds\files\locale\US\communicator-region
(6) Open 'region.properties".
(7) Updated _notifications.provider.0.datasource with your url (eg:
update_notifications.provider.0.datasource=http://jimbob/updates.rdf
(8)Save it.
(9) Move the system clock 'backward' 4 weeks.
(10)Shutdown the client.
(11)Then start the client again
(12)There is no notification dialog, it's correct behavior.
Step #2:
1) Install the 2002-10-09-05-1.0
(2) Go to C:\Builds\1009080510\chrome\US.jar
(3) On windows, use winzip to extract the files.
(4) The "LOCAL" folder is already unzipped.
(5) Go to C:\Builds\files\locale\US\communicator-region
(6) Open 'region.properties".
(7) Updated _notifications.provider.0.datasource with your url (eg:
update_notifications.provider.0.datasource=http://jimbob/updates.rdf
(8) save it.
(9) Move the system clock 'forward' 4 weeks.
(10)Shutdown the client.
(11)Then start the client again
(12)I wait even more than 5 minutes, There is no notification dialog popped up.
The notification dialog should pop up.
Server side:
(1) Go to http://jimbob/updates.rdf and changed the version number only:
(e.g: the build id # is: 1.0.2.20021009) or you can go to this server to get it
http://www.mozilla.org/xpapps/updates/updates.rdf.txt
Here is the rdf file that I already modified the version number:
<?xml version="1.0"?>
<RDF:RDF xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:NC="http://home.netscape.com/NC-rdf#">
<RDF:Description about="urn:updates:latest">
<NC:registryName>Browser</NC:registryName>
<NC:version>1.0.2.20021009</NC:version>
<NC:URL>http://mozilla.org/releases</NC:URL>
<NC:productName>Mozilla</NC:productName>
</RDF:Description>
</RDF:RDF>
(2) Save it as updates.rdf
Note: I even checked the pref.js and it showed
user_pref("update_notifications.provider.0.last_checked", 1035351257);
Samir, is this bug fixed or perhaps something wrong with my setups?
Thanks!
Assignee | ||
Comment 27•23 years ago
|
||
Added text/rdf MIME type to the server Patty was using to test.
Comment 28•23 years ago
|
||
Verified on all platforms (netscape branch build: 2002-10-09-08-1.0)
Keywords: fixed1.0.2 → verified1.0.2
Updated•21 years ago
|
Product: Core → Mozilla Application Suite
You need to log in
before you can comment on or make changes to this bug.
Description
•