From e4af63fc294342ca20de78343f95bb7182558727 Mon Sep 17 00:00:00 2001 From: Chris Hubing Date: Mon, 10 Sep 2018 11:17:05 -0400 Subject: [PATCH] fixed web.xml shib for 2.4 --- container_files/grouper.installer.properties | 2 +- container_files/ui/web.xml | 174 ++++--------------- test-compose/ui/Dockerfile | 1 + 3 files changed, 32 insertions(+), 145 deletions(-) diff --git a/container_files/grouper.installer.properties b/container_files/grouper.installer.properties index be9cd2b0..fa0f8b8d 100644 --- a/container_files/grouper.installer.properties +++ b/container_files/grouper.installer.properties @@ -16,7 +16,7 @@ grouperInstaller.default.installOrUpgrade = install grouperInstaller.autorun.installAllPatches = true # grouperInstaller.autorun.installPatchesUpToACertainPatchLevel = true -# grouperInstaller.autorun.installPatchesUpToThesePatchLevels = grouper_v2_3_0_api_patch_108,grouper_v2_3_0_ui_patch_45,grouper_v2_3_0_ws_patch_12,grouper_v2_3_0_pspng_patch_16 + grouperInstaller.autorun.installPatchesUpToThesePatchLevels = grouper_v2_3_0_api_patch_0,grouper_v2_3_0_ui_patch_0,grouper_v2_3_0_ws_patch_0,grouper_v2_3_0_pspng_patch_0 #### set this to true to try to use defaults for everything. Only things without default values will need to be set grouperInstaller.autorun.useDefaultsAsMuchAsAvailable = true diff --git a/container_files/ui/web.xml b/container_files/ui/web.xml index 92d4125d..f3aa302f 100644 --- a/container_files/ui/web.xml +++ b/container_files/ui/web.xml @@ -1,203 +1,89 @@ - - - - - - - + + GrouperUi edu.internet2.middleware.grouper.ui.GrouperUiFilter - - - - Error Catcher - edu.internet2.middleware.grouper.ui.ErrorFilter - - - Login check - edu.internet2.middleware.grouper.ui.LoginCheckFilter - - failureUrl - /index.jsp - - - ignore - :/populateIndex.do:/callLogin.do:/error.do:/logout.do:/status: - - - grouperRole - * - - - - - Caller page - edu.internet2.middleware.grouper.ui.CallerPageFilter - - - + CSRFGuard org.owasp.csrfguard.CsrfGuardFilter - - - - GrouperUi - *.do - - - + GrouperUi *.jsp - - - Error Catcher - *.do - - - - Error Catcher - /gotoCallerPage - - - + GrouperUi /grouperUi/app/* - - + GrouperUi /grouperUi/appHtml/* - - + GrouperUi /grouperExternal/app/* - - - GrouperUi - /grouperExternal/appHtml/* - - - + GrouperUi /grouperExternal/public/UiV2Public.index - - + GrouperUi /grouperExternal/public/UiV2Public.postIndex - - - Caller page - /gotoCallerPage - - - - Login check - *.do - - - + CSRFGuard /* - - - - edu.internet2.middleware.grouper.ui.GrouperSessionAttributeListener - - - + + edu.internet2.middleware.grouper.ui.GrouperSessionAttributeListener + + org.owasp.csrfguard.CsrfGuardServletContextListener - - + org.owasp.csrfguard.CsrfGuardHttpSessionListener - - - + StatusServlet Status Servlet edu.internet2.middleware.grouper.j2ee.status.GrouperStatusServlet 1 - - - - + UiServlet edu.internet2.middleware.grouper.j2ee.GrouperUiRestServlet 1 - - - OwaspJavaScriptServlet - org.owasp.csrfguard.servlet.JavaScriptServlet - - - - action - org.apache.struts.action.ActionServlet - - config - /WEB-INF/struts-config.xml - - 2 + + OwaspJavaScriptServlet + org.owasp.csrfguard.servlet.JavaScriptServlet - - - + StatusServlet /status - - + UiServlet /grouperUi/app/* - - + UiServlet /grouperExternal/app/* - - + UiServlet /grouperExternal/public/UiV2Public.index - - + UiServlet /grouperExternal/public/UiV2Public.postIndex - - - OwaspJavaScriptServlet - /grouperExternal/public/OwaspJavaScriptServlet - - - - action - *.do + + OwaspJavaScriptServlet + /grouperExternal/public/OwaspJavaScriptServlet - - - - - - - - - - - diff --git a/test-compose/ui/Dockerfile b/test-compose/ui/Dockerfile index 8fec2ae0..672230a8 100644 --- a/test-compose/ui/Dockerfile +++ b/test-compose/ui/Dockerfile @@ -3,5 +3,6 @@ FROM tier/grouper:latest LABEL author="tier-packaging@internet2.edu " #COPY in custom css, images, etc +ENV CLASSPATH=/ CMD ["ui"]