Project

General

Profile

Bug #6863

Suppression des données

Added by Sebastien Vuillet almost 4 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Start date:
09/14/2015
Due date:
% Done:

100%

Estimated time:
Navigateur:
Tous
Votre version de Silverpeas:
5.14.4
Système d'exploitation:
Votre base de données:
Toutes

Description

En cas de suppression d'une instance de workflow (et avoir vidé la corbeille des applications), les données en base de données subsistent (il y a de toujours des références à l'instance dans la table sb_workflow_processinstance);

History

#1

Updated by Sebastien Vuillet almost 4 years ago

15/09/15-10:08:08,437 - WARN : admin.EX_ERR_UNINSTANTIATE_COMPONENTS | MODULE : admin.Admin.unInstantiateComponents | !!! Message admin.EX_ERR_UNINSTANTIATE_COMPONENTS NOT INITIALIZED !!! (Deleting data from component 'SCRFAILURE' failed)
java.lang.NullPointerException
at com.silverpeas.workflow.engine.instance.ProcessInstanceManagerImpl.getProcessInstances(ProcessInstanceManagerImpl.java:69)
at com.silverpeas.workflow.engine.instance.ProcessInstanceManagerImpl.getProcessInstances(ProcessInstanceManagerImpl.java:63)
at com.silverpeas.processManager.ProcessManagerInstanciator.delete(ProcessManagerInstanciator.java:64)
at com.silverpeas.admin.components.Instanciateur.unInstantiateComponent(Instanciateur.java:191)
at com.silverpeas.admin.components.Instanciateur.unInstantiateComponentName(Instanciateur.java:171)
at com.stratelia.webactiv.beans.admin.Admin.unInstantiateComponents(Admin.java:3657)
at com.stratelia.webactiv.beans.admin.Admin.deleteComponentInst(Admin.java:1423)
at com.stratelia.webactiv.beans.admin.Admin.deleteComponentInst(Admin.java:1361)
at com.stratelia.webactiv.beans.admin.AdminController.deleteComponentInst(AdminController.java:466)
at com.silverpeas.jobStartPagePeas.control.JobStartPagePeasSessionController.deleteComponentInBin(JobStartPagePeasSessionController.java:1069)
at com.silverpeas.jobStartPagePeas.servlets.JobStartPagePeasRequestRouter.getDestinationNavBar(JobStartPagePeasRequestRouter.java:242)
at com.silverpeas.jobStartPagePeas.servlets.JobStartPagePeasRequestRouter.getDestination(JobStartPagePeasRequestRouter.java:856)
at com.silverpeas.jobStartPagePeas.servlets.JobStartPagePeasRequestRouter.getDestination(JobStartPagePeasRequestRouter.java:69)
at com.stratelia.silverpeas.peasCore.servlets.ComponentRequestRouter.computeDestination(ComponentRequestRouter.java:226)
at com.stratelia.silverpeas.peasCore.servlets.ComponentRequestRouter.doPost(ComponentRequestRouter.java:116)
at com.stratelia.silverpeas.peasCore.servlets.ComponentRequestRouter.doGet(ComponentRequestRouter.java:127)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:734)
at com.stratelia.silverpeas.peasCore.servlets.SilverpeasHttpServlet.service(SilverpeasHttpServlet.java:49)
at com.stratelia.silverpeas.peasCore.servlets.SilverpeasAuthenticatedHttpServlet.service(SilverpeasAuthenticatedHttpServlet.java:81)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:324)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)
at com.silverpeas.whitePages.filters.ComponentRequestRouterFilter.doFilter(ComponentRequestRouterFilter.java:74)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)
at org.silverpeas.web.filter.MassiveWebSecurityFilter.doFilter(MassiveWebSecurityFilter.java:173)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)
at org.silverpeas.web.token.SessionSynchronizerTokenValidator.doFilter(SessionSynchronizerTokenValidator.java:102)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)
at org.silverpeas.web.filter.MessageFilter.doFilter(MessageFilter.java:74)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)
at org.silverpeas.web.filter.HttpServletRequestDecoration.doFilter(HttpServletRequestDecoration.java:47)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:181)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.event(CatalinaContext.java:285)
at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.invoke(CatalinaContext.java:261)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:88)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:100)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:159)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:53)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:654)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951)
at java.lang.Thread.run(Thread.java:662)

#2

Updated by Sebastien Vuillet almost 4 years ago

Le problème vient du fait que dans la classe ProcessInstanceManagerImpl, la méthode public ProcessInstance[] getProcessInstances(String peasId, User user, String role,
String[] userRoles, String[] userGroupIds) throws WorkflowException

ne gère pas la cas d'un user null.

#3

Updated by Nicolas Eysseric over 3 years ago

  • Status changed from New to In progress...
  • Assignee set to Nicolas Eysseric
  • Target version set to Version 5.14.5

Ce qui est dommage c'est que le NPE se produit sur une trace !

#4

Updated by Nicolas Eysseric over 3 years ago

  • Status changed from In progress... to Resolved
  • % Done changed from 0 to 100
  • Votre base de données changed from PostgreSQL to Toutes

Le problème était plus ardu que cela.
Les données étaient supprimées dans un ordre incorrect lors de la suppression définitive de l'application.

Traité par PR :
#5

Updated by Miguel Moquillon over 3 years ago

  • Status changed from Resolved to Closed

Intégré en 5.14.5, 5.15 et 6.0

Also available in: Atom PDF