Open nicobrevin opened 1 month ago
@nicobrevin You can check the SSLFilterTest and the subclasses, or also the subclasses of SslParentTest
You say the issue occurs only with the larger files. If the content length is too large to fit into 32bits (int) the 2.41 JdkConnector has issues with it. JdkConnector 2.44 changed the content length to use long. Perhaps you can check this issue with the latest Jersey. The stack trace looks like a different issue, though.
Perhaps you can check this issue with the latest Jersey
Yes, that's true, I remember raising that bug! I ended up abandoning using JdkConnector for that use case, but revisited for something else where the files were smaller (<4 GB) but wanted the async-ness (and PATCH support) that JdkConnector has.
I'll try and find some time to test this out and get back to you...
We've found that we can't use jdk-connector to read entities from servers that are using chunked encoding, or we get intermittent
BufferOverflow
exceptions. We're fairly sure this only happens with larger files and when accessed via HTTPS, but we've not proved that with complete certainty. We controlled the other endpoint so fixed it by setting theContent-Length
in the response instead.Found in jersey 2.41
I'd love to give you a reproducer/failing test case if you can give me a pointer for how to set up the
ReadChunkedEntity
test to use SSL?