Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 198359 - removed UC can not be added (re-added) by installing a module
removed UC can not be added (re-added) by installing a module
Status: NEW
Product: platform
Classification: Unclassified
Component: Plugin Manager
PC Windows XP
: P4 (vote)
: 7.2
Assigned To: Libor Fischmeistr
Depends on:
Blocks: 179047
  Show dependency treegraph
Reported: 2011-05-05 18:44 UTC by err
Modified: 2014-02-10 14:16 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT


Note You need to log in before you can comment on or make changes to this bug.
Description err 2011-05-05 18:44:08 UTC
Given a module that is only a layer.xml with a UC.

1) install the module, the UC appears as expected
2) un-install the module
3) remove the UC
4) re-install the module
Observe: the UC is not there

The 7.0/config/Preferences/org/netbeans/modules/autoupdate/xxx_removed property prevents the xxx update center from being seen. This situation arises when the xxx_removed preference key exists true and there is no module that installs the xxx update center.

It seems the xxx_removed property should be cleared if the module that defined the update center is un-installed. In addition, if the UC is removed, and module that installed it has already been un-installed, then the xxx_removed property does not need to be set/created.

There's UpdateUnitProviderFactory.getDefault().create(...), but I'm assuming using that in a module installer would not override the xxx_removed flag.

I notice that when a manually added update center is removed then the _removed property is created; this is unnecessary litter in the preferences name space. (I don't know if this prevents manually adding an update center with the same name)

I guess I can add a post-install, as described in, to the module that removes the xxx_removed property.  Of course modifying some random preference, xxx_removed, that belongs to autoupdate violates any number of conventions; is there an API to clear the flag?
Comment 1 Jaroslav Tulach 2011-05-07 14:58:50 UTC
If you uninstall a module, the update center should disappear, e.g. no way to do step #3. If this does not work, then it is the source of other problems.

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo