Alex Wood
6ea8ff3a17
[java-client][resteasy] fix multipart requests ( #16517 )
...
This patch fixes two issues with the Resteasy generated client code.
The first is the usage of a deprecated method, getFormData. The fix for
this issue was originally conceived by @peter-seitz.
The second issue was a problem in how the Content-Disposition header was
being constructed. If we had a file named "test.txt" and were uploading
it to a field named "myFile", the Content-Disposition header should look
like
Content-Disposition: form-data; name="myFile"
Instead, the code was using the file's name (rather than the field name)
in the name directive and the header looked like
Content-Disposition: form-data; name="test.txt"
The Content-Disposition header can take an optional directive, filename,
but I have not included that here as that directive is mostly useful for
file downloads and not uploads.
2023-09-08 15:07:49 +08:00
..
2023-08-28 10:18:50 +08:00
2023-08-25 16:11:29 +08:00
2023-08-29 12:32:01 +01:00
2023-08-31 10:03:20 +08:00
2023-08-25 16:11:29 +08:00
2023-08-25 16:11:29 +08:00
2023-08-25 16:11:29 +08:00
2023-08-25 16:11:29 +08:00
2023-08-25 16:11:29 +08:00
2023-09-05 10:18:08 +08:00
2023-08-25 16:11:29 +08:00
2023-08-25 16:11:29 +08:00
2023-09-05 21:17:37 +02:00
2023-08-25 16:11:29 +08:00
2023-08-25 16:11:29 +08:00
2023-08-25 16:11:29 +08:00
2023-08-29 12:32:01 +01:00
2023-08-25 16:11:29 +08:00
2023-08-29 12:32:01 +01:00
2023-09-08 15:07:49 +08:00
2023-08-25 16:11:29 +08:00
2023-08-29 12:32:01 +01:00
2023-08-25 16:11:29 +08:00
2023-08-25 16:11:29 +08:00
2023-08-25 16:11:29 +08:00
2023-08-25 16:11:29 +08:00
2023-08-29 20:42:49 +08:00
2023-08-25 16:11:29 +08:00
2023-08-25 19:06:43 +01:00
2023-08-25 19:06:43 +01:00
2023-08-25 19:06:43 +01:00
2023-08-25 19:06:43 +01:00
2023-08-25 16:11:29 +08:00
2023-08-25 16:11:29 +08:00
2023-08-25 16:11:29 +08:00
2023-08-25 19:06:43 +01:00
2023-08-25 19:06:43 +01:00
2023-08-25 19:06:43 +01:00
2023-08-25 16:11:29 +08:00
2023-08-25 16:11:29 +08:00
2023-08-25 16:11:29 +08:00
2023-08-25 19:06:43 +01:00
2023-08-25 19:06:43 +01:00
2023-08-25 19:06:43 +01:00
2023-08-25 19:06:43 +01:00
2023-08-25 16:11:29 +08:00
2023-08-25 16:11:29 +08:00
2023-08-25 16:11:29 +08:00
2023-08-25 16:11:29 +08:00
2023-08-25 19:06:43 +01:00
2023-08-25 16:11:29 +08:00
2023-08-25 16:11:29 +08:00
2023-08-25 16:11:29 +08:00
2023-08-25 16:11:29 +08:00
2023-08-25 16:11:29 +08:00
2023-08-25 16:11:29 +08:00
2023-08-25 16:11:29 +08:00
2023-08-25 19:06:43 +01:00
2023-08-25 19:06:43 +01:00
2023-08-25 16:11:29 +08:00
2023-08-25 19:06:43 +01:00
2023-08-25 19:06:43 +01:00
2023-08-25 19:06:43 +01:00
2023-08-25 19:06:43 +01:00
2023-08-25 16:11:29 +08:00
2023-08-25 16:11:29 +08:00
2023-08-25 16:11:29 +08:00
2023-08-25 16:11:29 +08:00
2023-08-25 19:06:43 +01:00
2023-08-25 19:06:43 +01:00
2023-08-25 19:06:43 +01:00
2023-09-05 20:03:27 +08:00
2023-08-25 16:11:29 +08:00
2023-08-25 16:11:29 +08:00
2023-08-25 16:11:29 +08:00
2023-09-05 18:39:38 +08:00
2023-09-06 15:40:07 +08:00
2023-08-25 16:11:29 +08:00
2023-08-25 16:11:29 +08:00
2023-09-03 16:16:58 +08:00
2023-09-05 15:45:03 +08:00
2023-08-25 16:11:29 +08:00
2023-08-25 16:11:29 +08:00
2023-08-25 16:11:29 +08:00
2023-08-29 10:42:53 +08:00
2023-08-29 10:42:53 +08:00
2023-08-29 10:42:53 +08:00
2023-09-02 10:21:04 +08:00
2023-08-25 16:11:29 +08:00
2023-08-25 16:11:29 +08:00
2023-08-25 16:11:29 +08:00
2023-09-06 15:55:15 +08:00
2023-04-12 17:51:47 +08:00
2023-08-25 16:11:29 +08:00
2023-09-06 15:55:15 +08:00
2023-09-06 15:55:15 +08:00
2023-04-12 17:51:47 +08:00
2023-08-25 16:11:29 +08:00
2023-09-06 15:55:15 +08:00
2023-09-06 15:55:15 +08:00
2023-09-02 20:13:01 +01:00
2023-08-25 16:11:29 +08:00
2023-08-25 16:11:29 +08:00
2023-08-25 16:11:29 +08:00
2023-08-25 16:11:29 +08:00
2023-08-25 16:11:29 +08:00
2023-08-25 16:11:29 +08:00
2023-08-25 16:11:29 +08:00
2023-08-25 16:11:29 +08:00
2023-08-25 16:11:29 +08:00
2023-08-25 16:11:29 +08:00
2023-08-25 16:11:29 +08:00
2023-08-25 16:11:29 +08:00
2023-08-25 16:11:29 +08:00
2023-08-25 16:11:29 +08:00
2023-08-25 16:11:29 +08:00
2023-08-25 16:11:29 +08:00
2023-08-25 16:11:29 +08:00
2023-08-25 16:11:29 +08:00
2023-08-25 16:11:29 +08:00
2023-08-25 16:11:29 +08:00
2023-08-25 16:11:29 +08:00
2023-08-25 16:11:29 +08:00
2023-08-25 16:11:29 +08:00