Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 20896 - Unable to create file when updating platform permission denied.
Summary: Unable to create file when updating platform permission denied.
Status: RESOLVED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Update (deprecated - use Eclipse>Equinox>p2) (show other bugs)
Version: 2.0   Edit
Hardware: All HP-UX
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Dorian Birsan CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 23474 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-06-24 12:52 EDT by Konrad Kolosowski CLA
Modified: 2009-08-18 16:45 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Konrad Kolosowski CLA 2002-06-24 12:52:31 EDT
20020624 integration build.
In the middle of platform update, installed failed with a "Problem Occured" 
dialog saying: "unable to create new native thread".  This problem occured when 
after one of the two swt shared library files (libswt-cde-motif-2047.sl) has 
been intstalled, and permission on the file have been changed to r-xr-xr-x.

Now, trying to repeat the update process for the feature, install fails every 
time on the mentioned file with an error:
"Unable to complete action for feature "Eclipse Platform (HP-UX MOTIF)" due to 
errors.
Unble to create 
file "/bluebird/teamswt/kkolosow/eclipse/plugins/org.eclipse.swt.motif_2.0.0.v20
47/os/hpux/PA_RISC/libswt-cde-motif-2047.sl.  
[java.io.FileNotFoundException: /bluebird/teamswt/kkolosow/eclipse/plugins/org.e
clipse.swt.motif_2.0.0.v2047/os/hpux/PA_RISC/libswt-cde-motif-2047.sl 
(Permission denied)]"

The permission on the directory allow the files to be created and deleted, but 
permission on the file itself are r-x (see bug 20305).  It seems that update 
tries to overwrite the file and fails due to no write permission.
Comment 1 Dejan Glozic CLA 2002-09-10 17:38:45 EDT
This is fixed in 2.0.1
Comment 2 Konrad Kolosowski CLA 2002-09-11 14:28:37 EDT
This is not really fixed, but does not manifest itself in 2.0.
The shared library permissions on HP should be r-x.  Our code is changing them 
from rw to rwx, but it is not correct since having w permission on shared 
libraries can cause performance problems.  We decided to leave w permission 
unchanged to go around this bug.
Therefore the permission map should allow to specify wheter w permission, and 
it should be removed from the file.  The update code should recover if it tries 
to write a file over one that has no w permission.  One way to do it is to 
catch exception, delete a file and write it again from scratch.  
Comment 3 Christophe Elek CLA 2002-10-28 11:59:22 EST
*** Bug 23474 has been marked as a duplicate of this bug. ***
Comment 4 Dorian Birsan CLA 2004-06-04 14:57:49 EDT
Post 3.0
Comment 5 DJ Houghton CLA 2009-08-18 16:41:33 EDT
[LATER->WONTFIX] The "LATER" bugzilla resolution is being removed so reopening
to mark as WONTFIX.
Comment 6 DJ Houghton CLA 2009-08-18 16:45:23 EDT
[LATER->WONTFIX] The "LATER" bugzilla resolution is being removed so reopening
to mark as WONTFIX.