-
Bug
-
Resolution: Fixed
-
Major
-
None
-
None
-
4.6 M9
Environment:
Ametys 4.5.9 (demo)
Bug:
-The category input isn't mandatory
-Classified ads created without categories are impossible to open
-Error log:
*Message :* Cannot get path for root '/ametys-internal:sites/intranet/ametys-internal:sitemaps/fr/XXXXXXXXX' (page://XXXXXXXXX) and content '/ametys-internal:sites/intranet/ametys-internal:contents/ads-XXXXXXX' (defaultWebContent://XXXXXXXXXXXXX) *Emplacement :* org.ametys.plugins.ugc.page.UGCPageHandler._getPath(UGCPageHandler.java:338) *Pile d'appels :* java.lang.NullPointerException: Cannot invoke "org.ametys.cms.data.ContentValue.getContent()" because "classificationContentValue" is null at org.ametys.plugins.ugc.page.ClassificationType$TypeContent#getTransitionalPage:78 at org.ametys.plugins.ugc.page.UGCPageHandler#_getPath:332 at org.ametys.plugins.ugc.page.UGCPageHandler#getUgcPage:315 at org.ametys.plugins.ugc.page.UGCPageHandler#lambda$getUgcPage$0:304 at java.base/java.util.Optional#flatMap:289 at org.ametys.plugins.ugc.page.UGCPageHandler#getUgcPage:304 at org.ametys.plugins.ugc.transformation.xslt.UgcXSLTHelper#getUgcPage:81 at org.ametys.plugins.ugc.transformation.xslt.UgcXSLTHelper#getUgcPage:51 at java.base/jdk.internal.reflect.NativeMethodAccessorImpl#invoke0 (Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl#invoke:77 at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl#invoke:43 at java.base/java.lang.reflect.Method#invoke:568 at org.apache.xalan.extensions.ExtensionHandlerJavaClass#callFunction:367 at org.apache.xalan.extensions.ExtensionHandlerJavaClass#callFunction:440 at org.apache.xalan.extensions.ExtensionsTable#extFunction:222 at org.apache.xalan.transformer.TransformerImpl#extFunction:475 at org.apache.xpath.functions.FuncExtFunction#execute:208 at org.apache.xpath.Expression#executeCharsToContentHandler:313 at org.apache.xalan.templates.ElemValueOf#execute:274 at org.apache.xalan.transformer.TransformerImpl#executeChildTemplates:2402 at org.apache.xalan.templates.ElemTemplate#execute:394 at org.apache.xalan.templates.ElemCallTemplate#execute:248 at org.apache.xalan.transformer.TransformerImpl#executeChildTemplates:2402 at org.apache.xalan.transformer.TransformerImpl#transformToRTF:1990 at org.apache.xalan.transformer.TransformerImpl#transformToRTF:1912 at org.apache.xalan.templates.ElemVariable#getValue:312 at org.apache.xalan.templates.ElemVariable#execute:248 at org.apache.xalan.transformer.TransformerImpl#executeChildTemplates:2402 at org.apache.xalan.templates.ElemTemplate#execute:394 at org.apache.xalan.templates.ElemCallTemplate#execute:248 at org.apache.xalan.transformer.TransformerImpl#executeChildTemplates:2402 at org.apache.xalan.templates.ElemLiteralResult#execute:1376 at org.apache.xalan.transformer.TransformerImpl#executeChildTemplates:2402 at org.apache.xalan.templates.ElemChoose#execute:128 at org.apache.xalan.transformer.TransformerImpl#executeChildTemplates:2402 at org.apache.xalan.templates.ElemTemplate#execute:394 at org.apache.xalan.templates.ElemCallTemplate#execute:248 at org.apache.xalan.transformer.TransformerImpl#executeChildTemplates:2402 at org.apache.xalan.templates.ElemLiteralResult#execute:1376 at org.apache.xalan.transformer.TransformerImpl#executeChildTemplates:2402 at org.apache.xalan.templates.ElemLiteralResult#execute:1376 at org.apache.xalan.templates.ElemApplyTemplates#transformSelectedNodes:395 at org.apache.xalan.templates.ElemApplyTemplates#execute:178 at org.apache.xalan.transformer.TransformerImpl#executeChildTemplates:2402 at org.apache.xalan.transformer.TransformerImpl#applyTemplateToNode:2272 at org.apache.xalan.transformer.TransformerImpl#transformNode:1358 at org.apache.xalan.transformer.TransformerImpl#run:3449 at org.apache.xalan.transformer.TransformerHandlerImpl#endDocument:408 at org.apache.cocoon.xml.AbstractXMLPipe#endDocument:56 at org.apache.cocoon.transformation.TraxTransformer#endDocument:586 at org.apache.cocoon.xml.AbstractXMLPipe#endDocument:56 at org.apache.cocoon.sitemap.ContentAggregator#generate:133 at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline#processXMLPipeline:581 at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline#processXMLPipeline:301 at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline#process:782 at org.apache.cocoon.components.source.impl.SitemapSource#toSAX:414 at org.ametys.web.filter.ContentFilterHelper#saxContent:235 at org.ametys.web.frontoffice.search.metamodel.impl.ContentSaxer#sax:97 at org.ametys.web.frontoffice.search.requesttime.impl.SaxResultsSearchComponent#saxHit:150 at org.ametys.web.frontoffice.search.requesttime.impl.SaxResultsSearchComponent#saxHits:120 at org.ametys.web.frontoffice.search.requesttime.impl.SaxResultsSearchComponent#execute:73 at org.ametys.web.frontoffice.search.requesttime.SearchServiceGenerator#generate:174 at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline#processXMLPipeline:581 at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline#processXMLPipeline:301 at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline#process:782 at org.apache.cocoon.components.source.impl.SitemapSource#toSAX:414 at org.apache.cocoon.components.source.SourceUtil#toSAX:101 at org.apache.cocoon.components.source.SourceUtil#toSAX:181 at org.apache.cocoon.components.source.SourceUtil#toSAX:140 at org.ametys.web.repository.PageGenerator#_saxSource:722 at org.ametys.web.repository.PageGenerator#_saxZoneItem:519 at org.ametys.web.repository.PageGenerator#_saxZoneItems:389 at org.ametys.web.repository.PageGenerator#_saxZone:316 at org.ametys.web.repository.PageGenerator#generate:237 at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline#processXMLPipeline:581 at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline#processXMLPipeline:301 at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline#process:782 at org.apache.cocoon.components.source.impl.SitemapSource#toSAX:414 at org.apache.cocoon.components.source.SourceUtil#toSAX:101 at org.apache.cocoon.components.source.SourceUtil#parse:321 at org.apache.cocoon.sitemap.ContentAggregator#generate:125 at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline#processXMLPipeline:581 at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline#processXMLPipeline:301 at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline#process:483 at org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode#invoke:144 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:580 at javax.servlet.http.HttpServlet#service:741 at org.apache.catalina.core.ApplicationFilterChain#internalDoFilter:231 at org.apache.catalina.core.ApplicationFilterChain#doFilter:166 at org.apache.tomcat.websocket.server.WsFilter#doFilter:53 at org.apache.catalina.core.ApplicationFilterChain#internalDoFilter:193 at org.apache.catalina.core.ApplicationFilterChain#doFilter:166 at org.apache.catalina.core.StandardWrapperValve#invoke:202 at org.apache.catalina.core.StandardContextValve#invoke:96 at org.apache.catalina.authenticator.AuthenticatorBase#invoke:541 at org.apache.catalina.core.StandardHostValve#invoke:139 at org.apache.catalina.valves.ErrorReportValve#invoke:92 at org.apache.catalina.valves.AbstractAccessLogValve#invoke:688 at org.apache.catalina.core.StandardEngineValve#invoke:74 at org.apache.catalina.connector.CoyoteAdapter#service:343 at org.apache.coyote.http11.Http11Processor#service:375 at org.apache.coyote.AbstractProcessorLight#process:65 at org.apache.coyote.AbstractProtocol$ConnectionHandler#process:868 at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor#doRun:1639 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