Hello,
I bumped into a problem and can’t resolve it on my own…
Let me describe it in more detail :
-
A user sends a POST request with the authentication data
-
The server is supposed to reply with a redirect (302) and the same URI ( https://${domain}/as/${dynamic_token}/resume/as/authorization.ping BUT with the different HTTP method (GET)
-
According to this scriplet everything should work OK ( https://github.com/gatling/gatling/blob/master/gatling-http/src/main/scala/io/gatling/http/engine/response/RedirectProcessor.scala )
if (newClientRequest.getUri == originalRequest.getUri
&& newClientRequest.getMethod == originalRequest.getMethod
&& newClientRequest.getCookies.asScala.toSet == originalRequest.getCookies.asScala.toSet) {
// invalid redirect
“Invalid redirect to the same request”.failure
} else {
newClientRequest.success
4, It appears that my request should end up in the “else” block, since the second condition is not satisfied ( newClientRequest.getMethod == originalRequest.getMethod). However, it is not the case …
I keep getting the following message - “[INFO ] i.g.h.e.r.DefaultStatsProcessor - Request ‘request_1 Redirect 1’ failed for user 1: Invalid redirect to the same request”
Any ideas? Thank you in advance!
Leo