Mantis Bugtracker

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0004183 [Resin] minor always 08-19-10 15:18 01-13-11 15:12
Reporter cjohn View Status public  
Assigned To ferg
Priority normal Resolution fixed Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version 4.0.15 Product Version 3.1.6
  Product Build
Summary 0004183: Issue Parsing Querystring when it contains the url endcoded string '%A3'
Description We've come into an issue with the parsing of query string parameters and pinned it down to the handling of the encoded pound symbol '%A3'.

It looks like an IOException is being caught and logged, and any parameters after this are ignored.

The issue can be replicated by passing in the following string as a query to com.caucho.server.connection.Form.parseQueryString(..)

query = "cost=%a39.99"
Steps To Reproduce
Additional Information We're passing in UTF8 as the javaEncoding.

The exact error is happing around line 91 in

String value = converter.getConvertedString();

This goes into com.caucho.vfs.ByteToChar.getConvertedString() where the error is thrown when flush() is called.
Attached Files

- Relationships

- Notes
08-23-10 11:23

Based on feedback, '%A3' is not valid UTF-8 encoding.

However, can the handling of the exception be done differently to allow the remaining valid characters to get parsed correctly?

E.g. "cost=%a39.99&storeId=12" would still parse the storeId.

Many thanks,

01-13-11 15:12


Parsing to the invalid character (%xfffd)

- Issue History
Date Modified Username Field Change
08-19-10 15:18 cjohn New Issue
08-23-10 11:23 cjohn Note Added: 0004731
01-13-11 15:12 ferg Note Added: 0004929
01-13-11 15:12 ferg Assigned To  => ferg
01-13-11 15:12 ferg Status new => closed
01-13-11 15:12 ferg Resolution open => fixed
01-13-11 15:12 ferg Fixed in Version  => 4.0.15

Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
31 total queries executed.
27 unique queries executed.
Powered by Mantis Bugtracker