Uploaded image for project: 'Commons IO'
  1. Commons IO
  2. IO-579

FilenameUtils.isExtension() is case-sensitive

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Information Provided
    • 2.6
    • None
    • Utilities

    Description

      FilenameUtils.isExtension() is case-sensitive. 

      All 3 implementations of this method call String.equals() rather than equalsIgnoreCase(), so it means that if my extension is "jpg", for example, and my filename is something.JPG, the method (any of them) will return 'false'.

       

      fix suggestion: should use the method FilenameUtils.eqauls(...)

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            ohadr Ohad R
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 24h
                24h
                Remaining:
                Remaining Estimate - 24h
                24h
                Logged:
                Time Spent - Not Specified
                Not Specified