-
Bug
-
Resolution: Fixed
-
Major
-
4.2.0
-
None
-
None
-
4.2 M10
Setting a column in my search model
<column metadata-ref="linkDev/content"/>
or (not available yet)
<column metadata-ref="linkDev/*"/>
leads to the error:
java.lang.IllegalArgumentException: The field 'linkDev/content' can't be found in the selected content types. at org.ametys.cms.search.content.ContentSearchHelper.getSearchField(ContentSearchHelper.java:272) at org.ametys.cms.search.ui.model.impl.DefaultMetadataSearchUIColumn.getSearchField(DefaultMetadataSearchUIColumn.java:275) at org.ametys.cms.search.content.ContentSearcherFactory$SearchModelContentSearcher.getSort(ContentSearcherFactory.java:302) at org.ametys.cms.search.content.ContentSearcherFactory$SearchModelContentSearcher._searcher(ContentSearcherFactory.java:265) at org.ametys.cms.search.content.ContentSearcherFactory$SearchModelContentSearcher.searchWithFacets(ContentSearcherFactory.java:258) at org.ametys.cms.search.cocoon.SearchAction.doSearch(SearchAction.java:207) at org.ametys.cms.search.cocoon.SearchAction.act(SearchAction.java:137)
Due to , which introduced the throw of an exception no SearchField was found, whereas all the calls to this function check null. It should be removedCMS-8632