You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jmeter.apache.org by pm...@apache.org on 2012/09/07 21:53:31 UTC
svn commit: r1382138 -
/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/util/HTTPArgument.java
Author: pmouawad
Date: Fri Sep 7 19:53:30 2012
New Revision: 1382138
URL: http://svn.apache.org/viewvc?rev=1382138&view=rev
Log:
Add logging + cascade exception
Modified:
jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/util/HTTPArgument.java
Modified: jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/util/HTTPArgument.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/util/HTTPArgument.java?rev=1382138&r1=1382137&r2=1382138&view=diff
==============================================================================
--- jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/util/HTTPArgument.java (original)
+++ jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/util/HTTPArgument.java Fri Sep 7 19:53:30 2012
@@ -108,12 +108,18 @@ public class HTTPArgument extends Argume
if (alreadyEncoded) {
try {
// We assume the name is always encoded according to spec
+ if(log.isDebugEnabled()) {
+ log.debug("Decoding name, calling URLDecoder.decode with '"+name+"' and contentEncoding:"+EncoderCache.URL_ARGUMENT_ENCODING);
+ }
name = URLDecoder.decode(name, EncoderCache.URL_ARGUMENT_ENCODING);
// The value is encoded in the specified encoding
+ if(log.isDebugEnabled()) {
+ log.debug("Decoding value, calling URLDecoder.decode with '"+value+"' and contentEncoding:"+contentEncoding);
+ }
value = URLDecoder.decode(value, contentEncoding);
} catch (UnsupportedEncodingException e) {
log.error(contentEncoding + " encoding not supported!");
- throw new Error(e.toString());
+ throw new Error(e.toString(), e);
}
}
setName(name);