Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Not A Bug
-
Affects Version/s: 6.1.14
-
Fix Version/s: None
-
Component/s: HTTP
-
Labels:None
-
Environment:32-bit Windows XP, development environment, Jetty executed using maven-jetty-plugin, JDK1.6_06
-
Number of attachments :
Description
I'm having an encoding issue after upgrading from Jetty 6.1.11 to Jetty 6.1.14. Text data submitted via POST no longer gets interpretted as UTF-8. If I post "Héy." the request object gives me "Héy."
I get the same problem with Jetty 6.1.12. Reverting to Jetty 6.1.11 fixes the problem. I tried adding "-Dorg.mortbay.util.URI.charset=utf-8" to my VM parameters with no luck. I intercepted the request with Fiddler2, and the correct bytes are encoded in the request. (Fiddler2 also identifies the post data as "Héy.")
Web page:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Submission to check encoding</title><meta content="text/html; Charset=utf-8" http-equiv="content-type" />
</head><body>
<form method="post" action="/www.einvite.com-6.0-SNAPSHOT/email/wording" id="theForm">
<textarea name="testText" id="group1" rows="3" cols="40">Héy.</textarea>
<input name="textSubmit" id="textSubmit" value="Submit Text" type="submit" />
</form>
</body>
</html>
Controller method: (Spring 2.5 gives the request object to the method):
@RequestMapping(value = "/texttest", method = RequestMethod.POST)
public String postTestText(final HttpServletRequest request)
Issue Links
- relates to
-
JETTY-633
Jetty's handling of ISO-8859-1 POST requests
-
Activity
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Resolution | Not A Bug [ 6 ] |
JETTY-633changed the default interpretation of the post contents encoding 8859_1 from UTF-8 in accordance with the HTTP spec:http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.7.1