commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mikhail Khorkov (JIRA)" <j...@apache.org>
Subject [jira] [Issue Comment Deleted] (IO-558) FilenameUtils#directoryContains uses startWith-logic
Date Tue, 28 Nov 2017 07:46:00 GMT

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

Mikhail Khorkov updated IO-558:
-------------------------------
    Comment: was deleted

(was: Patch with fix.)

> FilenameUtils#directoryContains uses startWith-logic
> ----------------------------------------------------
>
>                 Key: IO-558
>                 URL: https://issues.apache.org/jira/browse/IO-558
>             Project: Commons IO
>          Issue Type: Bug
>          Components: Utilities
>    Affects Versions: 2.6
>            Reporter: Mikhail Khorkov
>         Attachments: _IO_558__Improve_logic_of_FilenameUtils_directoryContains__The_method_s_logic_was_wrong_in.patch
>
>
> org.apache.commons.io.FilenameUtils#directoryContains uses startWith-logic to find out
result.
> It is wrong for cases like directoryContains("/a", "/aa").
> In patch:
> # improve the method logic
> # write tests for the method
> # clean up the method's javaDoc



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

Mime
View raw message