]> source.dussan.org Git - gitblit.git/commit
fix: Fix jetty crashing when redirecting HTTP to HTTPS
authorFlorian Zschocke <f.zschocke+git@gmail.com>
Fri, 11 Nov 2022 17:53:57 +0000 (18:53 +0100)
committerFlorian Zschocke <f.zschocke+git@gmail.com>
Fri, 11 Nov 2022 17:53:57 +0000 (18:53 +0100)
commit609130e26c51739dc9a6d278b2006929546271e1
treeea7f8827844b9834ce789eb870c983403afdd30a
parente8a7b2d9f4a7ead8a195158ac8dc233735e00858
fix: Fix jetty crashing when redirecting HTTP to HTTPS

Jetty 9.3 changed the `setHandler` on the ServletContextHandler to no
longer automatically detect SecurityHandler, SessionHandler, etc. It
simply passes on the setHandler request to the ContextHandler class
(with a warning logged). So make sure to explicitly use the method
`setSecurityHandler` to set the ContraintSecurityHandler responsible
for the http -> https redirection.
src/main/java/com/gitblit/GitBlitServer.java