-
Bug
-
Resolution: Fixed
-
Major
-
4.0RC4
-
None
If the solr indexed contains a reference to a deleted content, the search should never failed.
The unknown content id should be logged as warning and ignored in result columns.
Actually the search failed with the following error
16fb73fc-e9ec-4619-8a65-f2dd8093f26e javax.jcr.ItemNotFoundException: 16fb73fc-e9ec-4619-8a65-f2dd8093f26e at org.apache.jackrabbit.core.ItemManager.getItemData(ItemManager.java:384) at org.apache.jackrabbit.core.ItemManager.getItem(ItemManager.java:328) at org.apache.jackrabbit.core.ItemManager.getItem(ItemManager.java:622) at org.apache.jackrabbit.core.SessionImpl.getNodeById(SessionImpl.java:536) at org.apache.jackrabbit.core.SessionImpl.getNodeByIdentifier(SessionImpl.java:1102) at org.ametys.plugins.repository.jcr.SimpleAmetysObjectFactory.getNode(SimpleAmetysObjectFactory.java:176) at org.ametys.plugins.repository.jcr.SimpleAmetysObjectFactory.getAmetysObjectById(SimpleAmetysObjectFactory.java:137) at org.ametys.plugins.repository.jcr.SimpleAmetysObjectFactory.getAmetysObjectById(SimpleAmetysObjectFactory.java:126) at org.ametys.plugins.repository.jcr.SimpleAmetysObjectFactory.getAmetysObjectById(SimpleAmetysObjectFactory.java:58) at org.ametys.plugins.repository.AmetysObjectResolver.resolveById(AmetysObjectResolver.java:310) at org.ametys.cms.content.ContentHelper.getContentMetadataValues(ContentHelper.java:392) at org.ametys.cms.content.ContentHelper.getMetadataValues(ContentHelper.java:309) at org.ametys.cms.content.ContentHelper.getCompositeMetadataValues(ContentHelper.java:371) at org.ametys.cms.content.ContentHelper.getMetadataValues(ContentHelper.java:314) at org.ametys.cms.content.ContentHelper.getMetadataValues(ContentHelper.java:281) at org.ametys.cms.content.ContentHelper.getMetadataValues(ContentHelper.java:255) at org.ametys.cms.content.ContentHelper.getMetadataValues(ContentHelper.java:240) at org.ametys.cms.search.content.ContentSearchHelper.getMetadataValues(ContentSearchHelper.java:313) at org.ametys.cms.search.ui.model.impl.MetadataSearchUIColumn.getFullValue(MetadataSearchUIColumn.java:255) at org.ametys.cms.search.content.ContentValuesExtractorFactory$SearchModelContentValuesExtractor.getValues(ContentValuesExtractorFactory.java:164) at org.ametys.cms.search.content.ContentValuesExtractorFactory$SearchModelContentValuesExtractor.getValues(ContentValuesExtractorFactory.java:147) at org.ametys.cms.search.cocoon.SearchJsonReader.getContentData(SearchJsonReader.java:239) at org.ametys.cms.search.cocoon.SearchJsonReader.setContents(SearchJsonReader.java:179) at org.ametys.cms.search.cocoon.SearchJsonReader.convertResults2JsonObject(SearchJsonReader.java:132) at org.ametys.cms.search.cocoon.SearchJsonReader.generate(SearchJsonReader.java:102)