You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Jerome Hollon (Jira)" <ji...@apache.org> on 2019/10/11 13:36:00 UTC
[jira] [Commented] (IO-606) FilenameUtils.concat fails with
relative path
[ https://issues.apache.org/jira/browse/IO-606?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16949451#comment-16949451 ]
Jerome Hollon commented on IO-606:
----------------------------------
I can reproduce this
{code:java}
assertEquals("../../../../src/test/resources/filename.xml", FilenameUtils.concat("../../../../src/test/resources/", "filename.xml")); {code}
{{org.opentest4j.AssertionFailedError: }}
{{Expected :../../../../src/test/resources/filename.xml}}
{{Actual :null}}
> FilenameUtils.concat fails with relative path
> ---------------------------------------------
>
> Key: IO-606
> URL: https://issues.apache.org/jira/browse/IO-606
> Project: Commons IO
> Issue Type: Bug
> Components: Utilities
> Affects Versions: 2.6
> Reporter: Matthias Ronge
> Priority: Major
>
> {{FilenameUtils.concat("../../../../src/test/resources/", "filename.xml")}}
> returns {{null}}, where expected result should be like
> {{../../../../src/test/resources/filename.xml}}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)