[
https://issues.apache.org/jira/browse/HADOOP-9043?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13646712#comment-13646712
]
Arpit Agarwal commented on HADOOP-9043:
---------------------------------------
{code}
+ @Test (timeout = 30000)
+ public void testSymlinkRejectsForwardSlashesInTarget() throws IOException {
+ if (!Shell.WINDOWS) {
+ // Not supported on non-Windows platforms
+ return;
+ }
{code}
Hi Chris - would you consider replacing the if clause with
{{assumeTrue(Shell.WINDOWS)}} instead? I am fixing the remaining instances
TestWinUtils.java with HADOOP-9483. If your patch gets in first I can fix it as
I will have to rebase.
+1 otherwise.
> winutils can create unusable symlinks
> -------------------------------------
>
> Key: HADOOP-9043
> URL: https://issues.apache.org/jira/browse/HADOOP-9043
> Project: Hadoop Common
> Issue Type: Bug
> Components: util
> Affects Versions: 3.0.0, 1-win
> Reporter: Chris Nauroth
> Assignee: Chris Nauroth
> Fix For: 3.0.0, 1-win
>
> Attachments: HADOOP-9043.branch-1.2.patch,
> HADOOP-9043.branch-1-win.5.patch, HADOOP-9043.branch-1-win.patch,
> HADOOP-9043.trunk.2.patch, HADOOP-9043.trunk.3.patch,
> HADOOP-9043.trunk.4.patch, HADOOP-9043.trunk.5.patch, HADOOP-9043.trunk.patch
>
>
> In general, the winutils symlink command rejects attempts to create symlinks
> targeting a destination file that does not exist. However, if given a
> symlink destination with forward slashes pointing at a file that does exist,
> then it creates the symlink with the forward slashes, and then attempts to
> open the file through the symlink will fail.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira