From 57014019aa05d72eaf07aa2c69a64b9e20eac11b Mon Sep 17 00:00:00 2001 From: VN Date: Tue, 30 Mar 2021 18:01:07 +0200 Subject: [PATCH] fix pubblica Security --- voila-runtime-core/.classpath | 66 ++++---- voila-runtime-displaytag/.classpath | 68 ++++----- voila-runtime-dwrajax/.classpath | 66 ++++---- voila-runtime-hibernate-search/.classpath | 58 +++---- voila-runtime-hibernate-spatial/.classpath | 58 +++---- voila-runtime-hibernate/.classpath | 70 ++++----- voila-runtime-jasper4/.classpath | 68 ++++----- voila-runtime-mail/.classpath | 66 ++++---- voila-runtime-mq-jms/.classpath | 70 ++++----- voila-runtime-oawtemplate/.classpath | 68 ++++----- voila-runtime-quartz/.classpath | 58 +++---- voila-runtime-restws/.classpath | 66 ++++---- voila-runtime-root/.classpath | 16 +- voila-runtime-rtftemplate/.classpath | 66 ++++---- voila-runtime-security/.classpath | 68 ++++----- voila-runtime-springmvc/.classpath | 68 ++++----- .../controller/ReloadSecurityController.java | 142 +++++++++--------- voila-runtime-springtest/.classpath | 58 +++---- voila-runtime-springws/.classpath | 66 ++++---- voila-runtime-style-consip2008/.classpath | 66 ++++---- voila-runtime-style-edstribute/.classpath | 66 ++++---- voila-runtime-style-newage2014/.classpath | 66 ++++---- .../.classpath | 66 ++++---- voila-runtime-style-responsive/.classpath | 66 ++++---- voila-runtime-task-executor/.classpath | 56 +++---- voila-runtime-web-res-dojo/.classpath | 66 ++++---- voila-runtime-web-res-jquery/.classpath | 66 ++++---- voila-runtime-web-res-mce/.classpath | 66 ++++---- voila-runtime-web/.classpath | 68 ++++----- 29 files changed, 959 insertions(+), 959 deletions(-) diff --git a/voila-runtime-core/.classpath b/voila-runtime-core/.classpath index 44ec4b5d..37d94711 100644 --- a/voila-runtime-core/.classpath +++ b/voila-runtime-core/.classpath @@ -1,33 +1,33 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/voila-runtime-displaytag/.classpath b/voila-runtime-displaytag/.classpath index f26beace..22f46d07 100644 --- a/voila-runtime-displaytag/.classpath +++ b/voila-runtime-displaytag/.classpath @@ -1,34 +1,34 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/voila-runtime-dwrajax/.classpath b/voila-runtime-dwrajax/.classpath index 44ec4b5d..37d94711 100644 --- a/voila-runtime-dwrajax/.classpath +++ b/voila-runtime-dwrajax/.classpath @@ -1,33 +1,33 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/voila-runtime-hibernate-search/.classpath b/voila-runtime-hibernate-search/.classpath index 9311ec40..76d8261f 100644 --- a/voila-runtime-hibernate-search/.classpath +++ b/voila-runtime-hibernate-search/.classpath @@ -1,29 +1,29 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/voila-runtime-hibernate-spatial/.classpath b/voila-runtime-hibernate-spatial/.classpath index 9311ec40..76d8261f 100644 --- a/voila-runtime-hibernate-spatial/.classpath +++ b/voila-runtime-hibernate-spatial/.classpath @@ -1,29 +1,29 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/voila-runtime-hibernate/.classpath b/voila-runtime-hibernate/.classpath index d2ff9352..e636903a 100644 --- a/voila-runtime-hibernate/.classpath +++ b/voila-runtime-hibernate/.classpath @@ -1,35 +1,35 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/voila-runtime-jasper4/.classpath b/voila-runtime-jasper4/.classpath index debec511..1c26d514 100644 --- a/voila-runtime-jasper4/.classpath +++ b/voila-runtime-jasper4/.classpath @@ -1,34 +1,34 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/voila-runtime-mail/.classpath b/voila-runtime-mail/.classpath index 44ec4b5d..37d94711 100644 --- a/voila-runtime-mail/.classpath +++ b/voila-runtime-mail/.classpath @@ -1,33 +1,33 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/voila-runtime-mq-jms/.classpath b/voila-runtime-mq-jms/.classpath index 01321e18..687dea3b 100644 --- a/voila-runtime-mq-jms/.classpath +++ b/voila-runtime-mq-jms/.classpath @@ -1,35 +1,35 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/voila-runtime-oawtemplate/.classpath b/voila-runtime-oawtemplate/.classpath index d31a016b..c7a1187b 100644 --- a/voila-runtime-oawtemplate/.classpath +++ b/voila-runtime-oawtemplate/.classpath @@ -1,34 +1,34 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/voila-runtime-quartz/.classpath b/voila-runtime-quartz/.classpath index 9311ec40..76d8261f 100644 --- a/voila-runtime-quartz/.classpath +++ b/voila-runtime-quartz/.classpath @@ -1,29 +1,29 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/voila-runtime-restws/.classpath b/voila-runtime-restws/.classpath index 44ec4b5d..37d94711 100644 --- a/voila-runtime-restws/.classpath +++ b/voila-runtime-restws/.classpath @@ -1,33 +1,33 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/voila-runtime-root/.classpath b/voila-runtime-root/.classpath index 517bf323..352036ce 100644 --- a/voila-runtime-root/.classpath +++ b/voila-runtime-root/.classpath @@ -1,10 +1,6 @@ - - - - - - - - - - + + + + + + diff --git a/voila-runtime-rtftemplate/.classpath b/voila-runtime-rtftemplate/.classpath index 44ec4b5d..37d94711 100644 --- a/voila-runtime-rtftemplate/.classpath +++ b/voila-runtime-rtftemplate/.classpath @@ -1,33 +1,33 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/voila-runtime-security/.classpath b/voila-runtime-security/.classpath index f26beace..22f46d07 100644 --- a/voila-runtime-security/.classpath +++ b/voila-runtime-security/.classpath @@ -1,34 +1,34 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/voila-runtime-springmvc/.classpath b/voila-runtime-springmvc/.classpath index debec511..1c26d514 100644 --- a/voila-runtime-springmvc/.classpath +++ b/voila-runtime-springmvc/.classpath @@ -1,34 +1,34 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/voila-runtime-springmvc/src/main/java/it/mice/voila/runtime/springmvc/controller/ReloadSecurityController.java b/voila-runtime-springmvc/src/main/java/it/mice/voila/runtime/springmvc/controller/ReloadSecurityController.java index f45a8b95..f5726929 100644 --- a/voila-runtime-springmvc/src/main/java/it/mice/voila/runtime/springmvc/controller/ReloadSecurityController.java +++ b/voila-runtime-springmvc/src/main/java/it/mice/voila/runtime/springmvc/controller/ReloadSecurityController.java @@ -1,69 +1,73 @@ -package it.mice.voila.runtime.springmvc.controller; - -import it.mice.voila.runtime.security.AbstractFilterSecurityInterceptorPostProcessor; -import it.mice.voila.runtime.springmvc.form.LoginForm; -import it.mice.voila.runtime.springmvc.taglibs.MenuTag; -import it.mice.voila.runtime.springmvc.util.SpringMvcUtil; - -import org.apache.commons.logging.Log; -import org.apache.commons.logging.LogFactory; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Controller; -import org.springframework.ui.Model; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; - -/** - * Default spring mvc controller for the user login to spring security. - * The controller maps the default request to /login. Please extends this class to change its behaviour. - */ -@Controller -@RequestMapping("/manage/security/*") -public class ReloadSecurityController extends DefaultFormController { - /** - * Default logger. - */ - private static Log logger = LogFactory.getLog(ReloadSecurityController.class); - - @Autowired(required=false) - private AbstractFilterSecurityInterceptorPostProcessor filterSecurityInterceptorPostProcessor; - - public AbstractFilterSecurityInterceptorPostProcessor getFilterSecurityInterceptorPostProcessor() { - return filterSecurityInterceptorPostProcessor; - } - - public void setFilterSecurityInterceptorPostProcessor( - AbstractFilterSecurityInterceptorPostProcessor filterSecurityInterceptorPostProcessor) { - this.filterSecurityInterceptorPostProcessor = filterSecurityInterceptorPostProcessor; - } - - /** - * Default action activated when the security/refresh was activated by menu. - * @param model the current spring mvc model - * @return the next tiles view; normally the login page. - */ - @RequestMapping(method=RequestMethod.GET) - public String initAction(Model model) { - return finalizeModelAndView("refreshSecurityPage", model); - } - - /** - * Ricarica le informazioni sulla sicurezza dal db in memoria. - * @param model spring mvc model - * @return redirect to the refresh security page. - */ - @RequestMapping(method = RequestMethod.POST) - public String reloadSecurity(Model model) { - if (logger.isInfoEnabled()) { - logger.info("Reloading security configuration files from data base"); - } - getFilterSecurityInterceptorPostProcessor().reloadInformation(); - if (logger.isInfoEnabled()) { - logger.info("Reloading complete !"); - } - SpringMvcUtil.cleanupSessionAttrsStartingWith(MenuTag.SAVED_MENU_DEFINITION); - - addInfoMessage("message.securityReloadComplete"); - return redirectTo("initAction"); - } -} +package it.mice.voila.runtime.springmvc.controller; + +import it.mice.voila.runtime.security.AbstractFilterSecurityInterceptorPostProcessor; +import it.mice.voila.runtime.springmvc.form.LoginForm; +import it.mice.voila.runtime.springmvc.taglibs.MenuTag; +import it.mice.voila.runtime.springmvc.util.SpringMvcUtil; + +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.Model; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; + +/** + * Default spring mvc controller for the user login to spring security. + * The controller maps the default request to /login. Please extends this class to change its behaviour. + */ +@Controller +@RequestMapping("/manage/security") +public class ReloadSecurityController extends DefaultFormController { + private static final String INIT = "init"; + + private static final String PUBLISH = "/publish"; + + /** + * Default logger. + */ + private static Log logger = LogFactory.getLog(ReloadSecurityController.class); + + @Autowired(required=false) + private AbstractFilterSecurityInterceptorPostProcessor filterSecurityInterceptorPostProcessor; + + public AbstractFilterSecurityInterceptorPostProcessor getFilterSecurityInterceptorPostProcessor() { + return filterSecurityInterceptorPostProcessor; + } + + public void setFilterSecurityInterceptorPostProcessor( + AbstractFilterSecurityInterceptorPostProcessor filterSecurityInterceptorPostProcessor) { + this.filterSecurityInterceptorPostProcessor = filterSecurityInterceptorPostProcessor; + } + + /** + * Default action activated when the security/refresh was activated by menu. + * @param model the current spring mvc model + * @return the next tiles view; normally the login page. + */ + @RequestMapping(value = INIT, method=RequestMethod.GET) + public String initAction(Model model) { + return finalizeModelAndView("refreshSecurityPage", model); + } + + /** + * Ricarica le informazioni sulla sicurezza dal db in memoria. + * @param model spring mvc model + * @return redirect to the refresh security page. + */ + @RequestMapping(value = PUBLISH, method = RequestMethod.POST) + public String reloadSecurity(Model model) { + if (logger.isInfoEnabled()) { + logger.info("Reloading security configuration files from data base"); + } + getFilterSecurityInterceptorPostProcessor().reloadInformation(); + if (logger.isInfoEnabled()) { + logger.info("Reloading complete !"); + } + SpringMvcUtil.cleanupSessionAttrsStartingWith(MenuTag.SAVED_MENU_DEFINITION); + + addInfoMessage("message.securityReloadComplete"); + return redirectTo(INIT); + } +} diff --git a/voila-runtime-springtest/.classpath b/voila-runtime-springtest/.classpath index 9311ec40..76d8261f 100644 --- a/voila-runtime-springtest/.classpath +++ b/voila-runtime-springtest/.classpath @@ -1,29 +1,29 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/voila-runtime-springws/.classpath b/voila-runtime-springws/.classpath index 44ec4b5d..37d94711 100644 --- a/voila-runtime-springws/.classpath +++ b/voila-runtime-springws/.classpath @@ -1,33 +1,33 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/voila-runtime-style-consip2008/.classpath b/voila-runtime-style-consip2008/.classpath index 15e6deb3..d0215792 100644 --- a/voila-runtime-style-consip2008/.classpath +++ b/voila-runtime-style-consip2008/.classpath @@ -1,33 +1,33 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/voila-runtime-style-edstribute/.classpath b/voila-runtime-style-edstribute/.classpath index 15e6deb3..d0215792 100644 --- a/voila-runtime-style-edstribute/.classpath +++ b/voila-runtime-style-edstribute/.classpath @@ -1,33 +1,33 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/voila-runtime-style-newage2014/.classpath b/voila-runtime-style-newage2014/.classpath index 15e6deb3..d0215792 100644 --- a/voila-runtime-style-newage2014/.classpath +++ b/voila-runtime-style-newage2014/.classpath @@ -1,33 +1,33 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/voila-runtime-style-responsive-adminlte/.classpath b/voila-runtime-style-responsive-adminlte/.classpath index 15e6deb3..d0215792 100644 --- a/voila-runtime-style-responsive-adminlte/.classpath +++ b/voila-runtime-style-responsive-adminlte/.classpath @@ -1,33 +1,33 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/voila-runtime-style-responsive/.classpath b/voila-runtime-style-responsive/.classpath index 15e6deb3..d0215792 100644 --- a/voila-runtime-style-responsive/.classpath +++ b/voila-runtime-style-responsive/.classpath @@ -1,33 +1,33 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/voila-runtime-task-executor/.classpath b/voila-runtime-task-executor/.classpath index fc22f123..39f2825f 100644 --- a/voila-runtime-task-executor/.classpath +++ b/voila-runtime-task-executor/.classpath @@ -1,28 +1,28 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/voila-runtime-web-res-dojo/.classpath b/voila-runtime-web-res-dojo/.classpath index 15e6deb3..d0215792 100644 --- a/voila-runtime-web-res-dojo/.classpath +++ b/voila-runtime-web-res-dojo/.classpath @@ -1,33 +1,33 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/voila-runtime-web-res-jquery/.classpath b/voila-runtime-web-res-jquery/.classpath index 5e418622..a01750cf 100644 --- a/voila-runtime-web-res-jquery/.classpath +++ b/voila-runtime-web-res-jquery/.classpath @@ -1,33 +1,33 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/voila-runtime-web-res-mce/.classpath b/voila-runtime-web-res-mce/.classpath index 44ec4b5d..37d94711 100644 --- a/voila-runtime-web-res-mce/.classpath +++ b/voila-runtime-web-res-mce/.classpath @@ -1,33 +1,33 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/voila-runtime-web/.classpath b/voila-runtime-web/.classpath index debec511..1c26d514 100644 --- a/voila-runtime-web/.classpath +++ b/voila-runtime-web/.classpath @@ -1,34 +1,34 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- GitLab