Bug#861872: Tomcat fails to serve png images

Markus Koschany apo at debian.org
Fri May 5 12:43:15 UTC 2017


Am 05.05.2017 um 09:30 schrieb Support:
> Package: tomcat7
> 
> Version: 7.0.28-4+deb7u12
> 
>  
> 
> When I request a PNG file The request stalls part way through and fails
> to return the full image. In a remote browser the request,
> https://example-site.com/path/to/an/image.png, is eventually timed out
> by a proxy and responds with HTTP code 206
> 
> or from command line on the server, wget
> http://localhost:8080/path/to/an/image.png, the request seems to run
> forever without completing.

Hello,

thanks for the report.

What Connector protocol do you use? This can be changed in
/etc/tomcat7/server.xml. I am using the NIO protocol and downloading
large static files or viewing images in a web browser works as expected.
This looks like a sendfile issue. This feature is enabled by default.
The behaviour has changed lately due to the fix for CVE-2017-5647. Can
you try to drop the patch for CVE-2017-5647, rebuild tomcat7 and try
again? Disable the tests by exporting DEB_BUILD_OPTIONS=nocheck to speed
up the process.

Regards,

Markus

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20170505/12044e24/attachment.sig>


More information about the pkg-java-maintainers mailing list