ASF Bugzilla – Attachment 33958 Details for
Bug 59714
NullPointerException when View Result Tree & follow redirects
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Use the original query when decoding of it fails
001-query-decode.diff (text/plain), 1.54 KB, created by
Felix Schumacher
on 2016-06-17 16:41:02 UTC
(
hide
)
Description:
Use the original query when decoding of it fails
Filename:
MIME Type:
Creator:
Felix Schumacher
Created:
2016-06-17 16:41:02 UTC
Size:
1.54 KB
patch
obsolete
>diff --git a/src/protocol/http/org/apache/jmeter/protocol/http/visualizers/RequestViewHTTP.java b/src/protocol/http/org/apache/jmeter/protocol/http/visualizers/RequestViewHTTP.java >index c570db6..b1bf4ea 100644 >--- a/src/protocol/http/org/apache/jmeter/protocol/http/visualizers/RequestViewHTTP.java >+++ b/src/protocol/http/org/apache/jmeter/protocol/http/visualizers/RequestViewHTTP.java >@@ -339,7 +339,8 @@ public class RequestViewHTTP implements RequestView { > * > * @param query > * to decode >- * @return a decode query string >+ * @return the decoded query string, if it can be url-decoded. Otherwise the original >+ * query will be returned. > */ > public static String decodeQuery(String query) { > if (query != null && query.length() > 0) { >@@ -347,14 +348,14 @@ public class RequestViewHTTP implements RequestView { > query = URLDecoder.decode(query, CHARSET_DECODE); // better ISO-8859-1 than UTF-8 > } catch(IllegalArgumentException e) { > log.warn("Error decoding query, maybe your request parameters should be encoded:" + query, e); >- return null; >+ return query; > } catch (UnsupportedEncodingException uee) { > log.warn("Error decoding query, maybe your request parameters should be encoded:" + query, uee); >- return null; >- } >+ return query; >+ } > return query; > } >- return null; >+ return ""; > } > > @Override
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 59714
: 33958