]> source.dussan.org Git - gitblit.git/commit
Use a custom redirect mechanism to workaround servlet container interference
authorJames Moger <james.moger@gitblit.com>
Tue, 2 Oct 2012 21:22:35 +0000 (17:22 -0400)
committerJames Moger <james.moger@gitblit.com>
Tue, 2 Oct 2012 21:22:35 +0000 (17:22 -0400)
commit9bdf88df00e9abf99442e14a33ed6215b32026b6
treed642132cf30dd68e841f3e1a52c3ae9ea1ad8f80
parent0c7c4936d4119e6edc9001815f1a4f14ba81d929
Use a custom redirect mechanism to workaround servlet container interference

This mechanism bypasses the standard Wicket redirect mechanism because it
turns out that the servlet container reencodes Wicket's relative redirect urls.
This results in another way that parameters with forward-slashes can be borked.

Bad, bad servlet container.

org.eclipse.jetty.server.Response#L447: String path=uri.getDecodedPath();
src/com/gitblit/wicket/GitblitRedirectException.java [new file with mode: 0644]
src/com/gitblit/wicket/pages/EmptyRepositoryPage.java
src/com/gitblit/wicket/pages/ProjectPage.java
src/com/gitblit/wicket/pages/UserPage.java