[
http://jira.jboss.com/jira/browse/JBPORTAL-1759?page=comments#action_1238... ]
Johannes Fiala commented on JBPORTAL-1759:
------------------------------------------
Julien, thank you for the quick analysis.
The url has been manufactured manually, so I can correct it easily in my program (in fact
it is a redirect url constructed manually).
However, if the user enters this url into the address field of the browser, my browsers
(Mozilla Firefox 2.0.0.8/MS IE 6) transform this automatically x-www-formurlencoded with
ISO-8859-1 (ü becomes %FC), which would result in the error outlined above. With earlier
versions of JBoss Portal 2.2.1SP3 and 2.6.1 GA this works correct as expected.
FastURLDecoder with malformed input %FC throws an
ArrayIndexOutOfBoundsException instead of throwing MalformedInputException
----------------------------------------------------------------------------------------------------------------------------
Key: JBPORTAL-1759
URL:
http://jira.jboss.com/jira/browse/JBPORTAL-1759
Project: JBoss Portal
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Portal Server
Affects Versions: 2.6.2 Final
Environment: Jboss AS 4.0.5 GA on JDK 1.4.2_14
Tested using the browsers: Mozilla Firefox 2.0.0.7 and MS Internet Explorer 6.0
Reporter: Johannes Fiala
Assigned To: Julien Viet
Fix For: 2.6.3 Final
Entering urls containing German Umlaute (e.g. ü = %FC) throws an
ArrayIndexOutOfBoundsException in FastURLDecoder.
E.g. Entering "http://localhost:8080/portal/?test=%FC"
throws the following exception:
HTTP Status 500 -
type Exception report
message description The server encountered an internal error () that prevented it from
fulfilling this request.
exception java.lang.ArrayIndexOutOfBoundsException: 4
org.jboss.portal.common.text.FastURLDecoder.encodeNoCheck(FastURLDecoder.java:268)
org.jboss.portal.common.text.FastURLDecoder.encode(FastURLDecoder.java:226)
org.jboss.portal.common.http.QueryStringParser.parseQueryString(QueryStringParser.java:233)
org.jboss.portal.server.servlet.PortalServlet.service(PortalServlet.java:291)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
Prior versions of Jboss Portal (2.2.1 SP3, 2.6.1 GA) handle this correctly, so this bug
is newly introduced with Jboss Portal 2.6.2 GA.
The issue does not seem to be browser specific, as it occurs with Mozilla Firefox 2.0.0.7
and MS Internet Explorer 6.0.
--
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