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

[SearchModel] Joined column with a RichText type does not work

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.2.0
    • 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 CMS-8632, which introduced the throw of an exception no SearchField was found, whereas all the calls to this function check null. It should be removed

            sprieul Simon Prieul (Inactive)
            sprieul Simon Prieul (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: