You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@jmeter.apache.org by bu...@apache.org on 2013/12/06 15:55:12 UTC
[Bug 55852] New: charset not recognized if value in single quotes
https://issues.apache.org/bugzilla/show_bug.cgi?id=55852
Bug ID: 55852
Summary: charset not recognized if value in single quotes
Product: JMeter
Version: 2.10
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P2
Component: HTTP
Assignee: issues@jmeter.apache.org
Reporter: lenieco@gmail.com
When using proxy for recording traffic, if any request has specified a charset
in single-quotes it produces java.nio.charset.IllegalCharsetNameException.
If request is something like this:
<meta http-equiv="Content-Type" content="text/html;charset='UTF-8'">
The following exception occurs:
2013/12/04 14:08:48 ERROR - jmeter.protocol.http.proxy.Proxy: Not implemented
(probably used https) java.nio.charset.IllegalCharsetNameException: 'UTF-8'
at java.nio.charset.Charset.checkName(Charset.java:284)
at java.nio.charset.Charset.lookup2(Charset.java:458)
at java.nio.charset.Charset.lookup(Charset.java:437)
at java.nio.charset.Charset.isSupported(Charset.java:479)
at
org.apache.jmeter.protocol.http.util.ConversionUtils.getEncodingFromContentType(ConversionUtils.java:73)
at
org.apache.jmeter.protocol.http.proxy.Proxy.addPageEncoding(Proxy.java:493)
at org.apache.jmeter.protocol.http.proxy.Proxy.run(Proxy.java:215)
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 55852] charset not recognized if value in single quotes
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55852
--- Comment #1 from Sebb <se...@apache.org> ---
Additionally, the Proxy class should catch IllegalCharsetNameException, log a
warning and then treat it the same as an unsupported charset.
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 55852] Be more lenient in parsing when charset value is
surrounded with single quotes
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55852
Philippe Mouawad <p....@ubik-ingenierie.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #2 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
Date: Fri Dec 6 20:03:20 2013
New Revision: 1548710
URL: http://svn.apache.org/r1548710
Log:
Bug 55852 - Be more lenient in parsing when charset value is surrounded with
single quotes
Bugzilla Id: 55852
Modified:
jmeter/trunk/src/core/org/apache/jmeter/samplers/SampleResult.java
jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/proxy/Proxy.java
jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/util/ConversionUtils.java
jmeter/trunk/xdocs/changes.xml
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 55852] Be more lenient in parsing when charset value is
surrounded with single quotes
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55852
Philippe Mouawad <p....@ubik-ingenierie.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |p.mouawad@ubik-ingenierie.c
| |om
Hardware|PC |All
Summary|charset not recognized if |Be more lenient in parsing
|value in single quotes |when charset value is
| |surrounded with single
| |quotes
OS|Linux |All
--
You are receiving this mail because:
You are the assignee for the bug.