ASF Bugzilla – Attachment 17088 Details for
Bug 37716
Invalid request using Proxy for a multipart/form-data with no filename specified.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
replace sampler.getFileField() with sampler.getFilename()
patch-bug-37716.txt (text/plain), 1.05 KB, created by
Benjamin Francisoud
on 2005-11-30 14:38:46 UTC
(
hide
)
Description:
replace sampler.getFileField() with sampler.getFilename()
Filename:
MIME Type:
Creator:
Benjamin Francisoud
Created:
2005-11-30 14:38:46 UTC
Size:
1.05 KB
patch
obsolete
>Index: C:/Documents and Settings/Benjamin/Mes documents/workspaces/workspaceApache/jakarta-jmeter-rel2.1/src/protocol/http/org/apache/jmeter/protocol/http/sampler/PostWriter.java >=================================================================== >--- C:/Documents and Settings/Benjamin/Mes documents/workspaces/workspaceApache/jakarta-jmeter-rel2.1/src/protocol/http/org/apache/jmeter/protocol/http/sampler/PostWriter.java (revision 349940) >+++ C:/Documents and Settings/Benjamin/Mes documents/workspaces/workspaceApache/jakarta-jmeter-rel2.1/src/protocol/http/org/apache/jmeter/protocol/http/sampler/PostWriter.java (working copy) >@@ -78,7 +78,7 @@ > ((HttpURLConnection) connection).setRequestMethod("POST"); > > // If filename was specified then send the post using multipart syntax >- String filename = sampler.getFileField(); >+ String filename = sampler.getFilename(); > if ((filename != null) && (filename.trim().length() > 0)) { > connection.setRequestProperty("Content-Type", "multipart/form-data; boundary=" + BOUNDARY); > connection.setDoOutput(true);
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 37716
:
17084
|
17086
|
17087
| 17088 |
17089