commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Osipov (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (IO-545) FilenameUtils.getFullPath incorrectly parses file names that begin with a tilde
Date Sat, 15 Jul 2017 21:58:00 GMT

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

Michael Osipov commented on IO-545:
-----------------------------------

Why are you still on 10.0? It is out of support. Can you create an sample code for me? I can
try on 10.3 and 11.0. I highly doubt the issue because there is no tilde expansion here.

> FilenameUtils.getFullPath incorrectly parses file names that begin with a tilde
> -------------------------------------------------------------------------------
>
>                 Key: IO-545
>                 URL: https://issues.apache.org/jira/browse/IO-545
>             Project: Commons IO
>          Issue Type: Bug
>          Components: Utilities
>    Affects Versions: 2.4, 2.5
>         Environment: OpenJDK Runtime Environment (build 1.8.0_92-b14)
> FreeBSD 10.0-RELEASE-p11
>            Reporter: J.P.
>            Priority: Minor
>
> For any file with a name that begins with a tilde, which is a valid file name in BSD
and Windows, if you call FilenameUtils.getFullPath and pass the file name, it returns the
file name followed by a path separator. It should return an empty string. It seems to be parsing
it as a unix user directory because it starts with the tilde.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message