Community
Participate
Working Groups
you can cause the java http post library to an infinity loop so it will get stucked by doing the following: - Using the Java HTTP library to send a http-based POST request to any API - the API can't handle the given parameters and returns an internal server error 500 - do another http post request that causes a 500 response too (can also be a different post just the http-state 500 response matters) - now the java http library can't recieve any responses and it stucks (even if the third response would cause a correct http-state 200)
i hope i placed it to the correct product (+product version) this bug is influenced by "java-http-(post)-library" and a given "http-based-API"
This doesnt look like API tools bug.
I was using the following packages: ---import org.apache.commons.httpclient.HttpClient; to create a HttpClient and than i used a HttpRequest (as a post request with parameters) ---HttpResponse response = request.execute(); and sent it to another PC which was running an API. That API was running in the Microsoft IIS and it tried to get a boolean parameter from the post request to calculate something and send back a request. If the parameter was a boolean value everything worked out perfectly, but if it wasn't the API couldnt handle it (and it had not a fallback, which is bad programming though). The API throwed a parsing error without handling it and the IIS (which has a fallback) returned <HTTP-500-InternalServerError>. So good so far. Now this <HTTP-500-InternalServerError> is recived by my Java-client and stored inside the HttpResponse Object and i can print it to the console for example. If I do the same procedure again it will work quite the same way, I am able to read the HttpResponse again and so on, BUT if the second HttpResponse was a <Http-500-InternalServerError> again I am totally unable to send anymore HttpRequests with my Java-client and if I try it will cause to an infinite loop. (And you have to terminate the Application) I hope someone can tell me which topic this bug belongs to :)
see my previous comment