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 148254 - Updater doesn't warm user when installed dir doesn't have enought rights
Summary: Updater doesn't warm user when installed dir doesn't have enought rights
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Autoupdate (show other bugs)
Version: 6.x
Hardware: PC Windows Vista
: P3 blocker with 1 vote (vote)
Assignee: dlipin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-24 15:47 UTC by Jana Maleckova
Modified: 2009-04-13 18:27 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jana Maleckova 2008-09-24 15:47:31 UTC
Product Version: NetBeans IDE Dev (Build 200809240201)
Java: 1.6.0_10-rc2; Java HotSpot(TM) Client VM 11.0-b15
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)

Description:
============
when options - Force Install into shared directory is checked, svn libraries should be automatically installed into 
Netbeans installation directory. This seems to be correctly working on all platform except Vista. Updater finds out 
that directory doesn't have enought permissions event though IDE was installed under the same user and installs 
automatically appropriate libs into userdir without letting known about it to user
User should be informed about it.
Comment 1 puce 2009-03-31 13:14:02 UTC
Setting the "Force install into shared directories" flag on the Plugins->Settings panel results in the error:
"Shared directory C:\Program Files\NetBeans 6.5\nb6.5 is read-only. Cannot install into the directory."

But as the OP, I installed the IDE with the same user!

Like this, plugins get installed in my userdir, which is synchronized with a server -> the user profile synchronization
gets slowed down a lot!

-> P2
Comment 2 Ondrej Vrabec 2009-03-31 14:07:01 UTC
Reassigning to autoupdate.
Could you please look at this issue?
1) The initial message refers to org.netbeans.autoupdate.api.InstallSupport, which is called by Subversion module code
to automatically install Subversion client 1.5 libraries
2) The second (Tue Mar 31 12:14:02 +0000 2009) refers (at least I think) to the global Tools>Plugins>Settings dialog in IDE
Comment 3 Sergey Petrov 2009-04-02 14:41:03 UTC
Don't it as a good justification for p2, if synch to server can't filter out some folders (for example netbeans plugins
folder). Also initial issue says about "no message" but second one says about reas-only folder message.
Can message.log be attached?
Comment 4 dlipin 2009-04-13 18:27:03 UTC
Please check the latest build (6.7M3 for example). I remember I`ve fixed some issues with permissions detection in the 
daily builds (not included in 6.5.1 and previous releases) so you should be informed that you don`t have enough 
permissions when you try to check "Force Install into shared directory". 

Please note that on Vista (with UAC enabled) you always install NB with administration privileges - in so called 
"evaluation mode". It is the installer feature and you might note the Vista`s evaluation dialog just after you run the 
installer. 
When running NB under the same user you don`t see such a dialog and thus run it as normal user (without admin rights 
and without permissions to write into C:\Program Files\NetBeans X.X.X).

To run NetBeans with admin rights, right-click on the shortcut and invoke "Run as Administrator". 
In that case can you`ll be able to install plugins into shared directories (C:\Program Files\NetBeans X.X.X).

If you still experience issues with permissions with 6.7M3 please reopen the issue, provide some clear steps to 
reproduce the issue and emphasize the difference between "what you see" and "what you expect" .

Thanks in advance,
Dmitry