Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-12188

Problem with a new reference table entry without title

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.8.2, 4.7.15, 4.9.0
    • 4.9.0
    • None
    • None
    • 4.9.0 M1

      If a user creates a new reference table entry without entering a title, 

      an another user performs a search. 

      Following error will appear : 

      Pile d'appels :

       

      org.apache.cocoon.util.location.LocatedException: Can not dispatch request '2' : 'cms' 'search/list.json' '{model=reference-table-search-ui.odf-enumeration.MccModaliteSession1, values={metadata-title-search=, metadata-title-like=, metadata-code-search=, metadata-cdmValue-search=, metadata-order-eq=null, metadata-archived-eq=, metadata-shortLabel-search=, metadata-compatibleRegimes-eq=[]}, facetValues={}, contextualParameters={siteName=www, skin=odf-demo, debug.mode=false, populationContexts=[/sites/www, /sites-fo/www], user={login=mag, population=utilisateurs, populationId=utilisateurs, populationLabel=utilisateurs, firstname=Magali, lastname=Franchet, fullname=Magali Franchet, sortablename=Franchet Magali, email=magali.franchet@ametys.org, locale=fr}, language=fr}, page=1, start=0, limit=50, sort=[{"property":"title","direction":"ASC"}]}'
      at org.ametys.core.ui.dispatcher.DispatchGenerator#_handleError:314
      at org.ametys.core.ui.dispatcher.DispatchGenerator#_dispatchingSubRequest:227
      at org.ametys.core.ui.dispatcher.DispatchGenerator#_dispatching:142
      at org.ametys.core.ui.dispatcher.DispatchGenerator#generate:93
      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.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:717
      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:490
      at org.apache.catalina.core.StandardHostValve#invoke:139
      at org.apache.catalina.valves.ErrorReportValve#invoke:92
      at org.apache.catalina.valves.AbstractAccessLogValve#invoke:678
      at org.apache.catalina.core.StandardEngineValve#invoke:74
      at org.apache.catalina.connector.CoyoteAdapter#service:343
      at org.apache.coyote.http11.Http11Processor#service:408
      at org.apache.coyote.AbstractProcessorLight#process:66
      at org.apache.coyote.AbstractProtocol$ConnectionHandler#process:853
      at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor#doRun:1587
      at org.apache.tomcat.util.net.SocketProcessorBase#run:49
      at java.base/java.util.concurrent.ThreadPoolExecutor#runWorker:1144
      at java.base/java.util.concurrent.ThreadPoolExecutor$Worker#run:642
      at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable#run:61
      at java.base/java.lang.Thread#run:1583
      Caused by: org.apache.excalibur.source.SourceException: Exception during processing of cocoon://_plugins/cms/search/list.json?model=reference-table-search-ui.odf-enumeration.MccModaliteSession1&values={metadata-title-search%3D, metadata-title-like%3D, metadata-code-search%3D, metadata-cdmValue-search%3D, metadata-order-eq%3Dnull, metadata-archived-eq%3D, metadata-shortLabel-search%3D, metadata-compatibleRegimes-eq%3D[]}&facetValues={}&contextualParameters={siteName%3Dwww, skin%3Dodf-demo, debug.mode%3Dfalse, populationContexts%3D[/sites/www, /sites-fo/www], user%3D{login%3Dmag, population%3Dutilisateurs, populationId%3Dutilisateurs, populationLabel%3Dutilisateurs, firstname%3DMagali, lastname%3DFranchet, fullname%3DMagali Franchet, sortablename%3DFranchet Magali, email%3Dmagali.franchet@ametys.org, locale%3Dfr}, language%3Dfr}&page=1&start=0&limit=50&sort=[{"property":"title","direction":"ASC"}]&
      at org.apache.cocoon.components.source.impl.SitemapSource#getInputStream:277
      at org.ametys.core.ui.dispatcher.DispatchGenerator#_handleResponse:266
      at org.ametys.core.ui.dispatcher.DispatchGenerator#_dispatchingSubRequest:221
      ... 70 more
      Caused by: org.apache.cocoon.ProcessingException: Failed to process reader
      at <map:read type="search-json"> - file:/D:/Dev/Ametys-1b/kernel/07_CMS/master/main/plugin-cms/sitemap.xmap:542:51
      at org.apache.cocoon.ProcessingException#throwLocated:113
      at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline#handleException:959
      at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline#processReader:940
      at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline#process:475
      at org.apache.cocoon.components.source.impl.SitemapSource#getInputStream:267
      ... 72 more
      Caused by: java.lang.NullPointerException: Cannot invoke "org.ametys.plugins.repository.metadata.MultilingualString.getLocales()" because "value" is null
      at org.ametys.cms.content.ContentHelper#getTitleVariants:848
      at org.ametys.cms.search.cocoon.ContentGridComponent#getContentData:280
      at org.ametys.cms.search.cocoon.SearchJsonReader#getContentData:267
      at org.ametys.cms.search.cocoon.SearchJsonReader#setContents:220
      at org.ametys.cms.search.cocoon.SearchJsonReader#convertResults2JsonObject:173
      at org.ametys.cms.search.cocoon.SearchJsonReader#generate:134
      at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline#processReader:921
      ... 74 more
       
      

       

            Unassigned Unassigned
            mfranchet Magali Franchet
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: