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 27913 - Ability to default 'Global' state to true
Summary: Ability to default 'Global' state to true
Status: CLOSED DUPLICATE of bug 54042
Alias: None
Product: platform
Classification: Unclassified
Component: Autoupdate (show other bugs)
Version: 3.x
Hardware: PC Other
: P2 blocker with 4 votes (vote)
Assignee: Jiri Rechtacek
URL:
Keywords: ARCH
Depends on:
Blocks:
 
Reported: 2002-10-10 13:36 UTC by _ hair
Modified: 2007-04-01 03:12 UTC (History)
4 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ hair 2002-10-10 13:36:02 UTC
' During the manual installation of my module
through update center,
I would like my module to be installed globally
into the NB's installation
directory by default. Basically, I want the 
"Global" check box to be
checked automatically on the update center wizard's
"View Certificates and Install Modules" page upon
the installation of
my module. ' - Isao Yanagimachi, HP

This is important to the Minex team as alot of our
updates have binaries from the bin directory, and
the update doesn't work at all if it isn't global,
and it is too much to ask every single user every
time to check the global box and get it right.
Comment 1 akemr 2002-10-10 13:54:07 UTC
> our updates have binaries from the bin directory

Do you mean from your.nbm/netbeans/bin? In that case "Global" checkbox
will be checked automatically and (even more) it won't be possible to
uncheck it. Is it sufficient behaviour?
Comment 2 _ hair 2002-10-10 14:31:34 UTC
> In that case "Global" checkbox
> will be checked automatically

I've never seen this behaviour, it is a recent thing? 
But for us it is .nbm/minex5/bin because our product is called Minex5
not Netbeans, would this have any effect?

Also I do not think that covers all use cases. Honestly we would like
it to be 'Global' all the time, i cannot think of when we would have
user installation of modules. Minex5 doesn't offer as many modules as
netbeans, and each of our modules are quite large.
Comment 3 akemr 2002-10-10 14:44:01 UTC
ok, so I suggest to add new attribute "global" to info.xml, defining
behaviour of "Global" checkbox.

Possible values:

"default" -> "Global" will be checked by default
"mandatory" -> "Global" will be checked by default and it   
    won't be possible to uncheck it

other value or no value -> "Global" will be unchecked by 
    default (current behaviour)
Comment 4 Jesse Glick 2002-10-17 01:42:35 UTC
Sounds to me like this should a property of the installation (app),
not the NBM. If there is anything in bin/ or lib/ of course it needs
to be global. Otherwise, the NBM itself should not care. If the app
wants to forbid user-dir installations, perhaps this should be made
possible in some other way.
Comment 5 Marian Mirilovic 2002-12-06 18:50:05 UTC
reassigne to Hrebejk, new owner of autupdate 
Comment 6 Unknown 2003-11-20 15:58:42 UTC
The autoupdate module automatically defaults to 'Global' if a given
nbm installs any file in lib or bin directory. This is fine. But if an
nbm has a dependancy on another module that needs to be installed
globally (i.e. that installs files in lib or bin dir), then autoupdate
module is not correctly detecting this and does not force global
update for the dependent (when in fact it should be installed globally).

Autoupdate should check the manifest file to see if there is any
dependency on lib directory (in addition to checking where the nbm
installs files).

If this is done, then there will not be a need for module owners to
mark an nbm as global specifically and autoupdate itself should be
able to correctly identify global modules.

Comment 7 Jesse Glick 2003-11-21 19:38:50 UTC
Please explain why when module A has a file in lib/ (say a JAR, I
guess?) and module B depends on module A, then B must also be
installed globally. IMHO it should not matter where B is. If it needs
to refer explicitly to the path of the file in lib/, it can use
InstalledFileLocator, as all modules are required to do when referring
to file paths in one of the IDE installation directories.

Need a concrete example of why this RFE is necessary.
Comment 8 _ hair 2003-11-24 09:10:48 UTC
This is also not just about the need to install files to lib or bin
directory.
Some applications built ontop of NetBeans Platform simply do not want
modules to be installed into the users directory. This requirement
needs to be enforced (or atleast recommended/defaulted) from the auto
update centre.
(What Jesse hints at above making the client unable to install userdir
modules would be an idea solution for the Minex application. But I
suspect other applications might want to have a recommendation, or
global default only on the bin and lib binary installing modules...)
Comment 9 _ ttran 2003-11-24 09:41:42 UTC
I don't like very much the idea of forcing 'global' on the user.  On
Unix world and many other setups the IDE is installed by the admin on
a read-only location.  Forced global autoupdate is useless in those cases.
Comment 10 _ hair 2003-11-24 10:47:06 UTC
"Forced global autoupdate is useless in those cases."
This could indeed be desired, only the person (the system
administrator) that installed the NetBeans plaftform application can
install extra modules, if permissions are so set.
Comment 11 Marian Mirilovic 2003-12-01 10:49:17 UTC
reassigne to Jirka - new owner of autoupdate
Comment 12 Jiri Rechtacek 2005-02-08 09:28:41 UTC

*** This issue has been marked as a duplicate of 54042 ***
Comment 13 _ hair 2006-07-05 18:58:05 UTC
verified or just very old