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 2022/06/14 18:40:00 UTC

[jira] [Resolved] (IO-762) FileSystem.WINDOWS.isReservedFileName doesn't check for file extension

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

Gary D. Gregory resolved IO-762.
--------------------------------
    Fix Version/s: 2.12.0
         Assignee: Gary D. Gregory
       Resolution: Fixed

[~leonidas_chiron] 

In git master. Please verify and close.

Also available as a 2.12.0-SNAPSHOT build from  https://repository.apache.org/content/repositories/snapshots/commons-io/commons-io/2.12.0-SNAPSHOT/

> FileSystem.WINDOWS.isReservedFileName doesn't check for file extension
> ----------------------------------------------------------------------
>
>                 Key: IO-762
>                 URL: https://issues.apache.org/jira/browse/IO-762
>             Project: Commons IO
>          Issue Type: Bug
>          Components: Utilities
>    Affects Versions: 2.11.0
>         Environment: Java 8 (AdoptOpenjdk), tested on both linux (debian 10) and windows (2008 R2)
>            Reporter: Leonidas Chiron
>            Assignee: Gary D. Gregory
>            Priority: Minor
>             Fix For: 2.12.0
>
>
> FileSystem.WINDOWS.isReservedFileName() doesn't check file names without extension, for instance FileSystem.WINDOWS.isReservedFileName("COM1.txt") returns false but the creation of the latter file on a Windows platform will fail.
> Also the method should be case-insensitive, eg FileSystem.WINDOWS.isReservedFileName("com1") should return true
>  
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.7#820007)