This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 154026 - Inconsistent showing of updates when first class module update was downloaded and IDE not yet restarted
Summary: Inconsistent showing of updates when first class module update was downloaded...
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Plugin Manager (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: dlipin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-27 15:04 UTC by rbalada
Modified: 2009-05-07 08:06 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Test Update Center to reproduce this issue (1.26 MB, application/octet-stream)
2008-11-27 15:05 UTC, rbalada
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rbalada 2008-11-27 15:04:36 UTC
NetBeans 6.5 Patch 1 touches module org.netbeans.modules.autoupdate.services to fix issue 150034, issue 150610 and issue
151108. The module org.netbeans.modules.autoupdate.services belongs to so called "first class modules" as defined in
autoupdate.ui/src/org/netbeans/modules/autoupdate/ui/Utilities.java. This classification causes that these first class
modules are always installed first (it's update of the updating facility). After the first class updates have been
downloaded you are asked if you want to restart the IDE now or later. If you opt for later, Updates tab of Plugin
Manager gets filled with the rest of available updates. The Updates tab should either stay empty until after IDE restart
or inform user that there are further updates which would be available after IDE restart. Otherwise there's no clear
reason why to define first class modules and their special handling.

Steps to reproduce:
1) Get NetBeans IDE 6.5 vanilla (no updates applied)
2) Download attached zip archive with test Update Center (excerpt from NB 6.5 Patch 1 pre-release version)
3) Unpack downloaded zip archive to empty directory
4) Start NetBeans IDE 6.5
5) Go to menu Tools -> Plugins
6) Select Settings tab
7) Disable all Update Centers
8) Click Add button
9) Name the update center, enter file:// protocol URL to the unpacked test Update Center's catalog.xml.gz
10) Click OK
11) Switch to the "Updates" tab
12) You should see just one update "Auto Update Services"
13) Click Update
14) Click Next
15) Check the license checkbox and click "Update"
16) Choose "Restart IDE later" radio button and click Finish

This is enough to reproduce re-filling of the Updates tab with the rest of updates from the Update Center.
Comment 1 rbalada 2008-11-27 15:05:56 UTC
Created attachment 74241 [details]
Test Update Center to reproduce this issue
Comment 2 dlipin 2008-12-10 10:07:37 UTC
Some kind of lack of pending status support (Issue 134595).
Comment 3 Sergey Petrov 2009-03-23 16:52:17 UTC
need to be resolved with 134595, mark as dependent to review at the same time
Comment 4 dlipin 2009-05-05 12:24:11 UTC
fixed in core-main#4975372aba29.
Comment 5 Quality Engineering 2009-05-07 08:06:47 UTC
Integrated into 'main-golden', will be available in build *200905070201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/4975372aba29
User: Dmitry Lipin <dlipin@netbeans.org>
Log: Issue #154026 Inconsistent showing of updates when first class module update was downloaded and IDE not yet restarted