]> source.dussan.org Git - vaadin-framework.git/commit
When InputStream cannot be opened while writing static resource response, display...
authorFabian Lange <lange.fabian@gmail.com>
Thu, 13 Jun 2013 13:11:39 +0000 (15:11 +0200)
committerVaadin Code Review <review@vaadin.com>
Wed, 10 Jul 2013 06:07:31 +0000 (06:07 +0000)
commite4011c6fa4d7a00b718551885339854ceacc0cf0
treeb60440af899c91e2b55d12898386f0c05d971de7
parent6a4bbe52c399c58d43d7f81f322fe8b090df6921
When InputStream cannot be opened while writing static resource response, display 404 instead of 500 (#10920)

A security audit revealed that it is possible to trigger an error 500 with
stack trace by just trying a directory traversal. An example of this can be
found in the sampler: http://demo.vaadin.com/sampler/VAADIN/widgetsets/
While there are other scenarios that can produce exceptions, in this place
Vaadin can handle it more graceful by just catching the exception and
returning 404.

Change-Id: Iec68d81d3bca365ec133737a9cd3e3b825d192b2
server/src/com/vaadin/server/VaadinServlet.java