Open GoogleCodeExporter opened 8 years ago
Seems like you've undergone a very painful investigation to reach your
conclusion, sorry about that!
I suspect that the problem is that you use "application/json" and RA tries to
do some clever things to support object serialization that obviously doesn't
work properly.
Thanks for reporting, I'll look into this a bit better when I find some time.
Original comment by johan.ha...@gmail.com
on 22 Nov 2012 at 8:56
Johan,
Sorry that my report came off as disgruntled, that last bit about spending days
troubleshooting was useless information that I should have kept to myself.
I find RA super useful, I use it both for testing and for automation tools.
There are not enough HTTP client API's out there that do a good job exposing
the underlying protocol/options -AND- keep the interface simple. I'd love to
see what you would do on the server side.
Cheers,
Dave Woldrich
Original comment by dwoldr...@gmail.com
on 2 Dec 2012 at 5:09
I ran into a similar issue with simple java beans, had to add this to the maven
pom dependencies
<dependency>
<groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-core-asl</artifactId>
<version>${jackson.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-mapper-asl</artifactId>
<version>${jackson.version}</version>
<scope>test</scope>
</dependency>
The documentation actually talks about the magic selection
http://code.google.com/p/rest-assured/wiki/Usage#Serialization - see "Content
based Serialization"
Original comment by Heiko.Ru...@googlemail.com
on 8 Dec 2012 at 8:56
Issue 313 has been merged into this issue.
Original comment by johan.ha...@gmail.com
on 21 Feb 2014 at 10:06
Is this still an issue?
Original comment by johan.ha...@gmail.com
on 3 Jun 2014 at 6:57
Using Rest Assured 2.3.2.
I have an issue where fileName is not sent to Server (getting null to server
side). I would appreciate if someone can update on this issue.
_response = given().
auth().preemptive().basic(Constants.USER_NAME, Constants.PASSWORD).
contentType("multipart/form-data").
multiPart("file", new File(fileName), "application/json").
formParam("info", infoValue).
//expect().
//body("status", 200).
when().
post(path);
Original comment by krao03
on 27 Aug 2014 at 5:44
@Krao: This should be fixed in version 2.3.3. Are you still seeing this issue?
Original comment by johan.ha...@gmail.com
on 23 Sep 2014 at 9:14
Original issue reported on code.google.com by
dwoldr...@gmail.com
on 18 Nov 2012 at 7:11