ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Taras Ledkov (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (IGNITE-3670) IGFS: Local secondary: Add test for listPath() method called for symlink to directory
Date Tue, 23 Aug 2016 08:38:20 GMT

    [ https://issues.apache.org/jira/browse/IGNITE-3670?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15432390#comment-15432390
] 

Taras Ledkov commented on IGNITE-3670:
--------------------------------------

{panel:title=Vladimir}
determine the path to be a symlink, we call
{dir.delete()}
which will fail if directory is not empty.
{panel}
Not true. If the *file* is symlink and file.delete() is called, then the symlink is deleted.
I think it is a right and expected behavior. When the user creates symbolic link to directory
he doesn't expect delete target contents when symlink is deleted recursive.

> IGFS: Local secondary: Add test for listPath() method called for symlink to directory
> -------------------------------------------------------------------------------------
>
>                 Key: IGNITE-3670
>                 URL: https://issues.apache.org/jira/browse/IGNITE-3670
>             Project: Ignite
>          Issue Type: Task
>          Components: IGFS
>    Affects Versions: 1.6
>            Reporter: Taras Ledkov
>            Assignee: Taras Ledkov
>             Fix For: 1.8
>
>
> 1. Create symlink under the *workDir* that is points to directory that is placed outside
*workDir*;
> 2. Call listPaths() for the IGFS path that is mapped to the symlink.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message