You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Alexey Varlamov (JIRA)" <ji...@apache.org> on 2009/07/08 03:45:14 UTC

[jira] Updated: (HARMONY-6252) [classlib][luni] File.getCanonicalPath behavior wrong according to the RI

     [ https://issues.apache.org/jira/browse/HARMONY-6252?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexey Varlamov updated HARMONY-6252:
-------------------------------------

    Component/s: Classlib

> [classlib][luni] File.getCanonicalPath behavior wrong according to the RI
> -------------------------------------------------------------------------
>
>                 Key: HARMONY-6252
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6252
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: linux
>            Reporter: Li Jing Qin
>         Attachments: FileCanonical.v2.diff, FileTest.java, mkTestDir.sh
>
>   Original Estimate: 72h
>  Remaining Estimate: 72h
>
> Suppose there are some symlink: A --> B --> C. If we delete C, breaking the link, A.getCanonicalPath should return A itself. B.getCanonicalPath should return B itself.
> Also we have problems when the file got trailing dots. Details in my test case file.
> I have investigated the code. The policy seems very odd to me. So I have rewrite the parse cause, according to the linux path resolution.
> Three files are attached.
> 1. The diff file
> 2. mkTestDir.sh   create the symbol link under the /tmp/hydirtest
> 3. FileTest.java    Some test case I wrote
> This patch has passed all testcase under module luni on both Ubuntu and windows xp. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.