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.
Summary: | Recursive symlinks & copy? FileNotFoundException: Can't read Baixades/jpgraph-3.5.0b1/src/Examples/.../Examples/jpgraph | ||
---|---|---|---|
Product: | platform | Reporter: | Exceptions Reporter <exceptions_reporter> |
Component: | Filesystems | Assignee: | Jaroslav Havlin <jhavlin> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 7.3 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | 198502 |
Bug Depends on: | 237882 | ||
Bug Blocks: | |||
Attachments: |
stacktrace
Proposed Patch |
Description
Exceptions Reporter
2013-02-11 17:29:24 UTC
Created attachment 131257 [details]
stacktrace
It might help if the copy operation could detected symlinks and instead of copying it, rather recreated it somehow. Created attachment 141838 [details] Proposed Patch > It might help if the copy operation could detected symlinks and instead of > copying it, rather recreated it somehow. It is not clear how the symlinks should be recreated (use the same relative/absolute target path, or create link to source link?). We also cannot always assume that symbolic links should not be followed. The proposed patch simply tries to detect problematic recursive symbolic links and skips them. Please note that the attached patch doesn't work with Windows junctions, Files.isSymbolicLink(pathToJunction) returns false. Symlinks created e.g. with command "mklink" work correctly. Reported for 7.3.x or earlier, no new info since then -> closing as worksforme, please reopen in case you see it. |