]> source.dussan.org Git - vaadin-framework.git/commit
fix: don't serve directories as static files (#12325) (#12338) 8.13.2
authorAnna Koskinen <Ansku@users.noreply.github.com>
Mon, 5 Jul 2021 09:44:04 +0000 (12:44 +0300)
committerGitHub <noreply@github.com>
Mon, 5 Jul 2021 09:44:04 +0000 (12:44 +0300)
commitcaebf1e1d37001ffa4f04ffe92f3073b7c484499
tree4ae7eed01ce5a7789221e18de5344c6d6233985a
parent0259a37c441eb1faa32c75fa4fdd56d5627cc20f
fix: don't serve directories as static files (#12325) (#12338)

* fix: don't serve directories as static files (#12325)

Also prevents opening FileSystem for unknown schemes.

Modified cherry-picks of https://github.com/vaadin/flow/pull/11072 ,
https://github.com/vaadin/flow/pull/11147 , and
https://github.com/vaadin/flow/pull/11235
server/src/main/java/com/vaadin/server/VaadinServlet.java
server/src/main/java/com/vaadin/server/VaadinServletService.java
server/src/test/java/com/vaadin/server/VaadinServletTest.java
server/src/test/java/com/vaadin/server/WarURLStreamHandlerFactory.java [new file with mode: 0644]