[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jakarta-commons-dev
Subject:    [jira] [Created] (IO-559) FilenameUtils.normalize should verify hostname syntax in UNC path
From:       "Stefan Bodewig (JIRA)" <jira () apache ! org>
Date:       2017-11-30 14:33:00
Message-ID: JIRA.13121929.1512052344000.355597.1512052380090 () Atlassian ! JIRA
[Download RAW message or body]

Stefan Bodewig created IO-559:
---------------------------------

             Summary: FilenameUtils.normalize should verify hostname syntax in UNC \
path  Key: IO-559
                 URL: https://issues.apache.org/jira/browse/IO-559
             Project: Commons IO
          Issue Type: Bug
          Components: Utilities
    Affects Versions: 2.6
            Reporter: Stefan Bodewig


{{FilenameUtils.normalize}} will accept broken file names as UNC path even if their \
hostname part doesn't match the syntax of a proper hostname. Using certain hostnames \
like "." this may lead to strange side effects.

Most likely the best fix will be to make {{getPrefixLength}} verify the hostname part \
of a suspected UNC path and return a value of {{NOT_FOUND}} if it is not a valid \
hostname - much like it does for triple slashes.



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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic