Closed de-jcup closed 4 years ago
Sometimes we got HTTP server errors and sometimes they are Socketconnection errors.
The problem is about the embedded tomcat which does (sometimes) swallow up to big parts - and missing spring boot configuration ala server.tomcat.*.maxSwallowSize
So we got a flaky test.
see
We must change the behaviour of file upload size exceed. It shall return a NOT_ACCEPTABLE and not an internal server error.
Also at the moment we have very often following flaky test:
com.daimler.sechub.integrationtest.scenario2.FileUploadSizeScenario2IntTest.when_file_exceeds_5MB_a_server_error_is_thrown
Here we expect an
HttpServerErrorException
but some times we got aSocketException
(see following example stacktrace ) what is really disturbing because we often got broken builds where everything is okay.We have following possibilities
SocketException
and fix root cause (if possible, I got the feeling this has something to do with a race condition of throwing exception an closing server socket...)