Bug 70699 - halt on startup when user not allowed access to lockfile
Summary: halt on startup when user not allowed access to lockfile
Status: CLOSED INVALID
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Runtime (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows 2000
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: platform-runtime-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2004-07-22 17:39 EDT by Jeff Nevicosi CLA
Modified: 2009-08-30 02:08 EDT (History)
0 users

See Also:


Attachments
log (9.19 KB, text/plain)
2004-08-25 14:05 EDT, Andrew Eidsness CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jeff Nevicosi CLA 2004-07-22 17:39:55 EDT
Defect reproducible only with Win 2000 Server.

Eclipse installed by user in Administrator group in c:\program files\eclipse.  
Eclipse started & default workspace selected, set as default to always open & 
populated with various resources - java proj, 2 text files.

Log out. User in low-level User group, which does not have rights to Modify 
c:\program files (but does have Execute rights) starts Eclipse.  Error 
message, caption "Eclipse" message "An error has occured. See the log file 
c:\program"

Note the "c:\program" truncation.

Access to admin-created workspace should not be allowed, but should prompt for 
alternate workspace name.
Comment 1 Jeff Nevicosi CLA 2004-07-22 17:47:04 EDT
Used Eclipse JDT SDK Build 200406251208
Comment 2 Pascal Rapicault CLA 2004-08-25 09:56:23 EDT
The first time you run eclipse, the configuration is created in "c:\program
files\eclipse\configuration".
This area is used to store the values presented in the workspace chooser
(c:\program files\eclipse\configuration\org.eclipse.ui.ide).

When the low-level user runs this eclipse, the configuration area is being found
(this is a good thing because this way everybody shares the same manifest files
and other runtime things) and the workspace chooser is populated with the info
available (which is not interesting in your case).

In order to set up your shared install of eclipse, simply run:
  eclipse -initialize

This will generate all the config files and stuffs but it will not create a
workspace and therefore the config.ini will be clean to that respect.
Comment 3 Andrew Eidsness CLA 2004-08-25 14:05:10 EDT
Created attachment 14180 [details]
log

This is the log file that I got when I changed my windows configuration
directory (and all sub-folders) to read only and then tried to start eclipse. 
The stack shows that execution didn't get as far as the IDEApplication, the
root problem is somewhere inside the runtime.  There's an 'Access Denied' from
near Locker_JavaNio.java:30.

This surprised me because I thought that if the runtime could not read the
configuration directory then it would use some user-local configuration area
instead.  Perhaps that is only if the user has properly setup their shared
install (which I intentionally did not do in this case).

The interesting thing (at least to me) is that although the config area was
marked read-only AND although eclipse failed to launch because the config area
was read only; my log file got written into the configuration directory.
Comment 4 Andrew Eidsness CLA 2004-08-25 14:06:26 EDT
Moving back to pascal since the error is happening before the workspace launcher 
code is executed.  I've also changed the title to match the error that I 
attached in comment 3.
Comment 5 Pascal Rapicault CLA 2004-09-09 13:18:28 EDT
Several improvements have been done in this area, could you try with the 3.0.1 
candidate.
Comment 6 Rafael Chaves CLA 2005-02-28 18:25:24 EST
Please reopen when you can provide the information requested in comment 5.
Comment 7 Jeff Nevicosi CLA 2005-05-12 18:08:30 EDT
tester who originally reported bug does not respond.  Assumed fixed.
Comment 8 Denis Roy CLA 2009-08-30 02:08:52 EDT
As of now 'LATER' and 'REMIND' resolutions are no longer supported.
Please reopen this bug if it is still valid for you.