Bind ProjectServlet dependencies in WebModule
I don't install GitOverHttpModule in my environment's server, which means the dependencies for ProjectServlet are not set up correctly. Move this back to WebModule, which I do install. Change-Id: I0235990901b284a8e45c8919c4dca4388d595987
This commit is contained in:
@@ -31,8 +31,6 @@ public class GitOverHttpModule extends ServletModule {
|
||||
|
||||
@Override
|
||||
protected void configureServlets() {
|
||||
install(new ProjectServlet.Module());
|
||||
|
||||
filter("/p/*").through(ProjectAccessPathFilter.class);
|
||||
if (authConfig.isTrustContainerAuth()) {
|
||||
filter("/p/*").through(ContainerAuthFilter.class);
|
||||
|
||||
@@ -119,6 +119,7 @@ public class WebModule extends FactoryModule {
|
||||
install(new UrlModule());
|
||||
install(new UiRpcModule());
|
||||
install(new GerritRequestModule());
|
||||
install(new ProjectServlet.Module());
|
||||
|
||||
bind(GitWebConfig.class).toInstance(gitWebConfig);
|
||||
if (gitWebConfig.getGitwebCGI() != null) {
|
||||
|
||||
Reference in New Issue
Block a user