[jboss-jira] [JBoss JIRA] Created: (JBPORTAL-1970) FastURLDecoder / enhance error message

Antoine Herzog (JIRA) jira-events at lists.jboss.org
Fri Mar 28 13:27:42 EDT 2008


FastURLDecoder / enhance error message 
---------------------------------------

                 Key: JBPORTAL-1970
                 URL: http://jira.jboss.com/jira/browse/JBPORTAL-1970
             Project: JBoss Portal
          Issue Type: Task
      Security Level: Public (Everyone can see)
    Affects Versions: Common-1.0
         Environment: JBP 2.6.4
            Reporter: Antoine Herzog
            Priority: Minor
             Fix For: Common-1.0.1


small thing :

in FastURLDecoder class
at line : 329

line is : throw new MalformedInputException("Cannot decode char " + c);

Adding some "[" and "]."  would be better :
throw new MalformedInputException("Cannot decode char [" + c + "].");

usual error case is a blank space in the url... and then the message MAY be confusing (nothing is shown).

it will help when someone have this kind of error on bad char in the url.

thanks,

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list