Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 334334

Summary: Importing file into workspace changes its permissions
Product: [Eclipse Project] Platform Reporter: Tom Crockett <Thomas.M.Crockett>
Component: ResourcesAssignee: Szymon Brandys <Szymon.Brandys>
Status: RESOLVED DUPLICATE QA Contact:
Severity: critical    
Priority: P3 CC: eugene.turkov, jamesblackburn+eclipse, Megan.C.Mickelson, remy.suen, sptaszkiewicz, Szymon.Brandys
Version: 4.1   
Target Milestone: 3.7 M7   
Hardware: Macintosh   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Tom Crockett CLA 2011-01-13 19:20:30 EST
Build Identifier: 20100917-0705

When importing a file into the workspace via the "File System" import wizard, a file with umask "-rw-r--r--" gets changed to "-rw-------". Also, if the file is imported as a linked resource, it will change the permissions of the *original* file in the same way! 

I have verified this on both Mac and Linux. I have also verified that this is a 3.6 bug--it doesn't happen when using Eclipse 3.5.2. Could this have something to do with the new functionality in 3.6 to support POSIX permissions?

Reproducible: Always

Steps to Reproduce:
1. Using the "File System" import wizard, import a file with umask "-rw-r--r--"
2. Check its permissions, either within Eclipse or in the terminal, the permissions are now "-rw-------"
Comment 1 Tom Crockett CLA 2011-01-13 19:25:20 EST
Also, it is not specific to that particular import wizard; we have a custom file import mechanism which is also affected.
Comment 2 Prakash Rangaraj CLA 2011-02-09 01:07:45 EST
*** Bug 336302 has been marked as a duplicate of this bug. ***
Comment 3 Tom Crockett CLA 2011-02-14 22:45:49 EST
Is anyone looking into this? Any chance it could be fixed for 3.6 SR2?
Comment 4 Szymon Brandys CLA 2011-02-15 05:58:26 EST
(In reply to comment #3)
> Is anyone looking into this? Any chance it could be fixed for 3.6 SR2?

Hi Tom. We have been working on the fix to have it fixed in 3.7. It's too late to backport it to 3.6 SR2, but once the fix is ready I may backport it to 3.6.2+.
Comment 5 Tom Crockett CLA 2011-02-15 10:56:13 EST
Thanks for the update, Szymon.
Comment 6 Szymon Brandys CLA 2011-03-23 10:03:03 EDT
(In reply to comment #5)
> Thanks for the update, Szymon.


Tom, it seems that the fix for bug 323681 addresses this issue too. Could you please pick up the next NBuild and verify that it works fine for your "custom
file import mechanism" mentioned in comment 1. If so, I will mark your bug as a duplicated of bug 323681.
Comment 7 Szymon Brandys CLA 2011-03-23 13:04:34 EDT
.

*** This bug has been marked as a duplicate of bug 323681 ***