ASF Bugzilla – Attachment 29741 Details for
Bug 54142
HTTP Proxy Server throws an exception when path contains "|" character
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
path to fixing the unwise characters problem
HTTPHC4Impl.java.patch (text/plain), 1.67 KB, created by
Marek
on 2012-12-10 14:43:10 UTC
(
hide
)
Description:
path to fixing the unwise characters problem
Filename:
MIME Type:
Creator:
Marek
Created:
2012-12-10 14:43:10 UTC
Size:
1.67 KB
patch
obsolete
>Index: src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHC4Impl.java >=================================================================== >--- src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHC4Impl.java (revision 1418369) >+++ src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHC4Impl.java (working copy) >@@ -231,7 +231,14 @@ > > HttpRequestBase httpRequest = null; > try { >- URI uri = url.toURI(); >+ URI uri = new URI(url.getProtocol(), >+ null /*userInfo*/, >+ url.getHost(), >+ url.getPort(), >+ url.getPath(), >+ url.getQuery(), >+ null /*fragment*/); >+ > if (method.equals(HTTPConstants.POST)) { > httpRequest = new HttpPost(uri); > } else if (method.equals(HTTPConstants.PUT)) { >@@ -249,7 +256,10 @@ > } else if (method.equals(HTTPConstants.PATCH)) { > httpRequest = new HttpPatch(uri); > } else { >- throw new IllegalArgumentException("Unexpected method: "+method); >+ throw new IllegalArgumentException(String.format("Unexpected method: \"%s\" for url: \"%s\" frameDepth=%d", >+ method, >+ url.toString(), >+ frameDepth)); > } > setupRequest(url, httpRequest, res); // can throw IOException > } catch (Exception e) {
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 54142
:
29595
|
29741
|
29742
|
30670