| Summary: | [resources] copying IFolder loses read-only flag setting | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Adam Kiezun <akiezun> | ||||
| Component: | Resources | Assignee: | Rafael Chaves <eclipse> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | dj.houghton | ||||
| Version: | 2.0 | Keywords: | helpwanted | ||||
| Target Milestone: | 2.1 M4 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows 2000 | ||||||
| Whiteboard: | |||||||
| Bug Depends on: | |||||||
| Bug Blocks: | 3624, 6053 | ||||||
| Attachments: |
|
||||||
|
Description
Adam Kiezun
Confirmed that this is the case on Windows 2000. This looks like a task for CoreFileSystemLibrary#internalCopyAttributes. I have created a test case IFolderTest#testReadOnlyFolderCopy, but will comment out the assertion until this is fixed. *** Bug 6060 has been marked as a duplicate of this bug. *** *** Bug 6053 has been marked as a duplicate of this bug. *** Verified that this is still a problem in 2002-04-09. See: org.eclipse.core.internal.resources.CopyVisitor.copyContents. Created attachment 2496 [details]
patch fixing this bug
There was a missing call to CoreFileSystemLibrary#internalCopyAttributes when
the resource being copied was a folder.
Tested on Win2K and Linux. DJ: Please verify and release. John's test case must be updated and released too. Leaving as new. Released fix and test case into HEAD. |