Commit c23f0499 authored by Matija Obreza's avatar Matija Obreza
Browse files

Fixed web filter initialization -- must be done by Spring

parent de04ddc1
......@@ -26,10 +26,8 @@ import javax.servlet.SessionTrackingMode;
import com.hazelcast.web.SessionListener;
import org.genesys2.server.servlet.filter.EnvVariablesFilter;
import org.genesys2.server.servlet.filter.LocaleURLFilter;
import org.genesys2.server.servlet.filter.NewGUIFilter;
import org.genesys2.server.servlet.filter.WebApiFilter;
import org.genesys2.spring.config.ApplicationConfig;
import org.genesys2.spring.config.SpringServletConfig;
import org.sitemesh.config.ConfigurableSiteMeshFilter;
......@@ -153,13 +151,13 @@ public class WebAppInitializer implements WebApplicationInitializer {
// EnvVar filter configuration
// Adds variables to all requests
FilterRegistration.Dynamic envVarFilter = servletContext
.addFilter("envVarFilter", EnvVariablesFilter.class);
.addFilter("envVarFilter", new DelegatingFilterProxy("envVarFilter"));
envVarFilter.addMappingForUrlPatterns(null, false, "/*");
// Genesys Web API Filter configuration
FilterRegistration.Dynamic webApiFilter = servletContext
.addFilter("webApiFilter", WebApiFilter.class);
.addFilter("webApiFilter", new DelegatingFilterProxy("webApiFilter"));
webApiFilter.addMappingForUrlPatterns(null, false, "/webapi/*");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment