commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Valrith (JIRA)" <>
Subject [jira] Created: (IO-252) NumberFormatException from FileUtils.toFile method
Date Thu, 14 Oct 2010 00:41:33 GMT
NumberFormatException from FileUtils.toFile method

                 Key: IO-252
             Project: Commons IO
          Issue Type: Bug
          Components: Utilities
    Affects Versions: 1.4
            Reporter: Valrith

Certain strings can cause the url) method to call
Integer.parseInt with an invalid argument and thus throw a NumberFormatException:

Exception in thread "main" java.lang.NumberFormatException: For input string: "%2"
	at java.lang.NumberFormatException.forInputString(
	at java.lang.Integer.parseInt(

One example of such a string: "both%20are%20100%20%25%20true"

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message