Closed GoogleCodeExporter closed 9 years ago
I cannot reproduce this. When I upload a file using new File(..) the file name
is correct. See for example
com.jayway.restassured.itest.java.presentation.MultiPartITest#simpleFileUploadin
g.
I would more info, preferably a small gradle or maven project that demonstrates
the issues.
Original comment by johan.ha...@gmail.com
on 29 Aug 2014 at 6:29
I've tried updating the HTTP Client dependency to the latest version (4.3.5)
and then I got the same error as you do! REST Assured 2.3.2 shipped with HTTP
Client 4.2.6 and it work in that version. The problem is that HttpClient has
changed they way they handle empty file names in
org.apache.http.entity.mime.content.FileBody. Previous http client extracted
the file name from the file if no explicit file name were defined which was no
longer the case in 4.3.5. So I've fixed this in the master branch now.
Original comment by johan.ha...@gmail.com
on 29 Aug 2014 at 1:15
Thanx,
I tried running code with REST Assured 2.3.3 and HTTP Client 4.3.5 and still
see same issue. Am I missing anything ?
Original comment by krao03
on 30 Aug 2014 at 3:57
Don't know, perhaps there's something wrong on the server side!? If it's
possible to create a Maven/Gradle project that demonstrates the issue I could
look into it.
Original comment by johan.ha...@gmail.com
on 30 Aug 2014 at 6:14
Thanx John, This issue is fixed.
Original comment by krao03
on 15 Sep 2014 at 7:37
Original issue reported on code.google.com by
krao03
on 28 Aug 2014 at 8:38