You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2021/06/30 17:04:00 UTC
[jira] [Work logged] (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?focusedWorklogId=617166&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-617166 ]
ASF GitHub Bot logged work on IO-727:
-------------------------------------
Author: ASF GitHub Bot
Created on: 30/Jun/21 17:03
Start Date: 30/Jun/21 17:03
Worklog Time Spent: 10m
Work Description: garydgregory commented on pull request #217:
URL: https://github.com/apache/commons-io/pull/217#issuecomment-871578088
@trungPa
May you please rebase on master? I see failures on Java 17 but the logs have expired.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Issue Time Tracking
-------------------
Worklog Id: (was: 617166)
Time Spent: 40m (was: 0.5h)
> 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
> Time Spent: 40m
> 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)