You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gary D. Gregory (Jira)" <ji...@apache.org> on 2021/09/26 14:26:00 UTC
[jira] [Resolved] (IO-727) FilenameUtils.directoryContains() and
FileUtils.directoryContains() return wrong result when parent and child
have the same path prefix
[ https://issues.apache.org/jira/browse/IO-727?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gary D. Gregory resolved IO-727.
--------------------------------
Fix Version/s: 2.12.0
Resolution: Fixed
[~trungPa]
Fixed in git master. Please verify and close.
> FilenameUtils.directoryContains() and FileUtils.directoryContains() return wrong result when parent and child have the same path prefix
> ---------------------------------------------------------------------------------------------------------------------------------------
>
> Key: IO-727
> URL: https://issues.apache.org/jira/browse/IO-727
> Project: Commons IO
> Issue Type: Bug
> Components: Utilities
> Reporter: Trung Pham
> Priority: Major
> Fix For: 2.12.0
>
> Time Spent: 1h 10m
> Remaining Estimate: 0h
>
> FilenameUtils.directoryContains() and FileUtils.directoryContains() will return `true` with the following input.
> {code:java}
> canonicalParent: /path/foo
> canonicalChild: /path/foobar
> {code}
> There were several issues on this but the problem still remains.
> IO-423 didn't do anything.
> IO-466 test case added in [676c03|https://github.com/apache/commons-io/commit/67325cf97946f053da51dd358a9ffca0a9676c03] just happened to passed because the input file didn't exist.
> Github PR: https://github.com/apache/commons-io/pull/217
--
This message was sent by Atlassian Jira
(v8.3.4#803005)