-
Bug
-
Resolution: Fixed
-
Major
-
2.9.0
-
None
-
None
-
4.6 RC4
How to reproduce :
- Create an article
- Add it a link to a file to dowload
=> This error is present in log :
Date : 08/12 10:33:24.783 Utilisateur : admin#ametys_demo_users Thread : Thread[http-nio-8080-exec-5,5,main] Niveau : ERROR Catégorie : org.ametys.core.observation.ObservationManager URI de la requête : /cms/plugins/explorer/add-file Message : The synchronous observer 'org.ametys.plugins.workspaces.activities.WorkspacesActivityObserver' failed to observe event[id: resource.created, issuer: UserIdentity [login=admin, population=ametys_demo_users], args: [object.parent.path = /ametys-internal:sites/www/ametys-internal:contents/pagetest-article/ametys-internal:attachments, resources = {resource://1c456b9f-8c01-4b53-8002-1d8047881ee8='/ametys-internal:sites/www/ametys-internal:contents/pagetest-article/ametys-internal:attachments/Article-index (1).xls' (resource://1c456b9f-8c01-4b53-8002-1d8047881ee8)}, object.parent = resources-collection://757a790e-072f-41ba-ae57-ca4aad1fcc4e]] Emplacement : org.apache.cocoon.util.log.SLF4JLoggerAdapter.error(SLF4JLoggerAdapter.java:46) Pile d'appels : java.lang.NullPointerException: Cannot invoke "org.ametys.plugins.workspaces.project.objects.Project.getName()" because "project" is null at org.ametys.plugins.workspaces.activities.WorkspacesActivityObserver#getActivityParameters:114 at org.ametys.plugins.workspaces.activities.WorkspacesActivityObserver#observe:93 at org.ametys.core.observation.ObservationManager#_observesEvent:356 at org.ametys.core.observation.ObservationManager#notify:142 at org.ametys.plugins.explorer.resources.actions.AddOrUpdateResourceHelper#_notifyResourcesCreated:350 at org.ametys.plugins.explorer.resources.actions.AddOrUpdateResourceHelper#performResourceOperation:321 at org.ametys.plugins.explorer.resources.actions.AddOrUpdateResourceHelper#performResourceOperation:228 at org.ametys.plugins.explorer.resources.actions.AddOrUpdateResourceHelper#performResourceOperation:206 at org.ametys.plugins.explorer.resources.actions.AddOrUpdateResourceHelper#performResourceOperation:182 at org.ametys.plugins.explorer.resources.actions.AddOrUpdateResourceAction#act:84 at org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode#invoke:120 at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode#invokeNodes:47 at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode#invoke:108 at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode#invokeNodes:69 at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode#invoke:143 at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode#invokeNodes:69 at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode#invoke:93 at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor#process:236 at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor#process:178 at org.apache.cocoon.components.treeprocessor.TreeProcessor#process:254 at org.apache.cocoon.components.treeprocessor.sitemap.MountNode#invoke:118 at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode#invokeNodes:47 at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode#invoke:108 at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode#invokeNodes:69 at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode#invoke:143 at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode#invokeNodes:69 at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode#invoke:93 at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor#process:236 at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor#process:178 at org.apache.cocoon.components.treeprocessor.TreeProcessor#process:254 at org.apache.cocoon.components.treeprocessor.sitemap.MountNode#invoke:118 at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode#invokeNodes:47 at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode#invoke:108 at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode#invokeNodes:69 at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode#invoke:143 at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode#invokeNodes:69 at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode#invoke:93 at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor#process:236 at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor#process:178 at org.apache.cocoon.components.treeprocessor.TreeProcessor#process:254 at org.apache.cocoon.components.treeprocessor.sitemap.MountNode#invoke:118 at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode#invokeNodes:47 at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode#invoke:108 at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode#invokeNodes:69 at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode#invoke:143 at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode#invokeNodes:69 at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode#invoke:93 at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor#process:236 at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor#process:178 at org.apache.cocoon.components.treeprocessor.TreeProcessor#process:254 at org.apache.cocoon.Cocoon#process:699 at org.ametys.runtime.servlet.RuntimeServlet#service:582 at javax.servlet.http.HttpServlet#service:733 at org.apache.catalina.core.ApplicationFilterChain#internalDoFilter:227 at org.apache.catalina.core.ApplicationFilterChain#doFilter:162 at org.apache.tomcat.websocket.server.WsFilter#doFilter:53 at org.apache.catalina.core.ApplicationFilterChain#internalDoFilter:189 at org.apache.catalina.core.ApplicationFilterChain#doFilter:162 at org.apache.catalina.core.StandardWrapperValve#invoke:202 at org.apache.catalina.core.StandardContextValve#invoke:97 at org.apache.catalina.authenticator.AuthenticatorBase#invoke:542 at org.apache.catalina.core.StandardHostValve#invoke:143 at org.apache.catalina.valves.ErrorReportValve#invoke:92 at org.apache.catalina.valves.AbstractAccessLogValve#invoke:687 at org.apache.catalina.core.StandardEngineValve#invoke:78 at org.apache.catalina.connector.CoyoteAdapter#service:346 at org.apache.coyote.http11.Http11Processor#service:374 at org.apache.coyote.AbstractProcessorLight#process:65 at org.apache.coyote.AbstractProtocol$ConnectionHandler#process:887 at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor#doRun:1684 at org.apache.tomcat.util.net.SocketProcessorBase#run:49 at java.base/java.util.concurrent.ThreadPoolExecutor#runWorker:1136 at java.base/java.util.concurrent.ThreadPoolExecutor$Worker#run:635 at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable#run:61 at java.base/java.lang.Thread#run:833