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 220850 - Do not allow to install global modules into userdir if installdir is r/o even as fallback
Summary: Do not allow to install global modules into userdir if installdir is r/o even...
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Autoupdate (show other bugs)
Version: 7.2.1
Hardware: PC Windows 7
: P1 normal (vote)
Assignee: Jiri Rechtacek
URL:
Keywords: UI
Depends on: 226177
Blocks:
  Show dependency tree
 
Reported: 2012-10-25 14:29 UTC by ttokoly
Modified: 2013-02-15 14:17 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE Log (90.77 KB, text/plain)
2012-10-25 14:29 UTC, ttokoly
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ttokoly 2012-10-25 14:29:25 UTC
Created attachment 126552 [details]
IDE Log

Product Version: NetBeans IDE 7.2.1 (Build 201210100934)
Java: 1.7.0_10-ea; Java HotSpot(TM) 64-Bit Server VM 23.6-b04
System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)

1. Install IDE - PHP distro.
2. Run IDE.
3. Click Tools | Plugins | Settings -> leave checked only NetBeans Distribution
4. Click on card "Available Plugins (30)" and check all plugins (Ctrl+A), click Install button.
5. Next, accept license agreements, click Install.

6a. Check "Run In Background" and wait.
7a. There should be in lower right corner little red "X", click on it -> it says "You don't have permission to install plugin(s) into the installation directory."
Click details -> "To perform installation into the shared directory, you should run the application as a user with administrative privilege or install the plugin(s) into your user directory. You can also change Plugin Install Location in Settings tab of Tools|Plugins dialog."
8a. You can only check the "Don't show this message again" and click on "OK".
9a. To install it you must run IDE as Admin and repeat whole process of downloading.

6b. Don't check "Run In Background" and wait.
7b. It says same thing as in 7a., but there's extra button "Install anyway".

My point is - is this right behavior? Shouldn't it be installed in the user dir?

If You look at the attachment, you'll find out that this is caused by org.netbeans.modules.apisupport.harness.
Comment 1 Jiri Rechtacek 2012-11-01 00:32:38 UTC
FYI: just core.startup and apisupport.harness are currently marked as default.
Comment 2 Jiri Rechtacek 2012-11-01 04:11:43 UTC
http://hg.netbeans.org/core-main/rev/5c663e9ff685

UI: Install Anyway was removed
Code: Checking of writable is done before download starts
Code: A global module cannot be installed neither as new nor as an update
Comment 3 Jiri Rechtacek 2012-11-01 04:13:16 UTC
Oops - another UI change: The error message was changed to hint Run as Administator
Comment 4 Tomas Danek 2012-11-01 14:35:14 UTC
thanks, verified in core-main 

Product Version: NetBeans IDE Dev (Build 20121101-d09f7085e25f)
Java: 1.7.0_10-ea; Java HotSpot(TM) 64-Bit Server VM 23.6-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_10-ea-b12
System: Mac OS X version 10.8.2 running on x86_64; UTF-8; en_US (nb)
User directory: /Users/tomas/Library/Application Support/NetBeans/dev
Cache directory: /Users/tomas/Library/Caches/NetBeans/dev
Comment 5 Jiri Rechtacek 2012-11-01 17:05:07 UTC
release73_beta2 - http://hg.netbeans.org/releases/rev/86cdfe6c07b3
Comment 6 Quality Engineering 2012-11-02 03:30:11 UTC
Integrated into 'main-golden', will be available in build *201211020001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/5c663e9ff685
User: Jiri Rechtacek <jrechtacek@netbeans.org>
Log: #220850: Do not allow to install global modules into userdir if installdir is r/o even as a fallback
Comment 7 Quality Engineering 2012-11-02 10:52:42 UTC
Integrated into 'releases', will be available in build *201211020750* or newer. Wait for official and publicly available build.
Changeset: http://hg.netbeans.org/releases/rev/86cdfe6c07b3
User: Jiri Rechtacek <jrechtacek@netbeans.org>
Log: #220850: Do not allow to install global modules into userdir if installdir is r/o even as a fallback
(transplanted from 5c663e9ff68588c3ac12e95b7d07c7180cafb7a9)
Comment 8 Tomas Danek 2012-11-02 12:15:52 UTC
Verified in beta2 build

Product Version: NetBeans IDE 7.3 Beta 2 (Build 201211020750)
Java: 1.7.0_09; Java HotSpot(TM) Client VM 23.5-b02
Runtime: Java(TM) SE Runtime Environment 1.7.0_09-b05
System: Windows 7 version 6.1 running on x86; Cp1252; en_US (nb)
User directory: C:\Users\tester\AppData\Roaming\NetBeans\7.3beta2
Cache directory: C:\Users\tester\AppData\Local\NetBeans\Cache\7.3beta2
Comment 9 Alexander Pepin 2013-02-14 15:59:22 UTC
I see that bug in NB 7.3 FCS (build 20130213)on my Windows 7 laptop.
Comment 10 Marian Mirilovic 2013-02-14 16:06:18 UTC
Tomas Tokoly, 
please check whether it works or not with latest FCS build. Thanks in advance.
Comment 11 Alexander Pepin 2013-02-14 16:11:17 UTC
This works on 2 others Win machines but does not work only on my Win 7 laptop. At the same time I did not have any problem with update testing on my laptop in RC1.
Comment 12 Alexander Pepin 2013-02-14 16:54:49 UTC
If I do not use installer and just download and unzip netbeans-7.3-201302132200-cpp.zip then no problem appears as well.
Comment 13 Jiri Rechtacek 2013-02-15 14:16:32 UTC
(In reply to comment #9)
> I see that bug in NB 7.3 FCS (build 20130213)on my Windows 7 laptop.

Confirmed on NB 7.3 FCS (build 20130213)on my Windows 7. This behaviour is as designed, apisupport.harness has to be installed in installation directory only but the installation directory is r/o on Windows 7 as the default. So, that's reason why the dialog with missing write permissions pops out. As a workaround is run IDE as Administrator (a option in popup menu in IDE's exe file). 

There are two issue how to improvem the user perception in this case:
* don't force install apisupport.harness into installation directory - issue 226177
* allow users to skip plugins which cannot be installed right now - issue 200807