Uploaded image for project: 'Nuxeo Studio'
  1. Nuxeo Studio
  2. NXS-1829

Fix layout listing contribution handling map sort infos

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.15
    • Fix Version/s: 2.15.1, 2.16
    • Component/s: Layouts & Widgets

      Description

      In advanced search configuration, there is duplicated elements edit_sort_info, one for the sort info pojo bean and another one for a map.

      That breaks the search sort feature because the service is consuming a list of map instead of a list of sort info.

      013-11-05 10:32:40,583 WARN  [org.jboss.seam.web.ExceptionFilter] exception root cause
      javax.el.ELException: /incl/documents_layout_table.xhtml @37,35 test="#{documents != null}": /incl/content_view.xhtml @193,82 value="#{provider.currentSelectPage}": Error reading 'currentSelectPage' on type org.nuxeo.ecm.platform.query.nxql.CoreQueryDocumentPageProvider
              at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:76)
              at com.sun.facelets.tag.TagAttribute.getObject(TagAttribute.java:233)
              at com.sun.facelets.tag.TagAttribute.getBoolean(TagAttribute.java:79)
      ...
      Caused by: java.lang.ArrayStoreException
              at java.util.ArrayList.toArray(ArrayList.java:389)
              at org.nuxeo.ecm.platform.query.nxql.CoreQueryDocumentPageProvider.buildQuery(CoreQueryDocumentPageProvider.java:195)
              at org.nuxeo.ecm.platform.query.nxql.CoreQueryDocumentPageProvider.getCurrentPage(CoreQueryDocumentPageProvider.java:87)
              at org.nuxeo.ecm.platform.query.api.AbstractPageProvider.getCurrentSelectPage(AbstractPageProvider.java:556)
      ...
      

      We should have instead

      diff -c -r smart-query~patch/smart-query-layouts-contrib.xml smart-query~orig/smart-query-layouts-contrib.xml
      *** smart-query~patch/smart-query-layouts-contrib.xml   Tue Nov  5 14:57:55 2013
      --- smart-query~orig/smart-query-layouts-contrib.xml    Thu Oct 24 10:53:28 2013
      ***************
      *** 182,188 ****
                <property name="newSortInfoTemplate">#{documentSearchActions.newSortInfo}</property>
                <property name="required">false</property>
              </properties>
      !       <properties mode="edit_sort_infos_map">
                <property name="newSortInfoTemplate">#{documentSearchActions.newSortInfoMap}</property>
                <property name="required">false</property>
              </properties>
      --- 182,188 ----
                <property name="newSortInfoTemplate">#{documentSearchActions.newSortInfo}</property>
                <property name="required">false</property>
              </properties>
      !       <properties mode="edit_sort_infos">
                <property name="newSortInfoTemplate">#{documentSearchActions.newSortInfoMap}</property>
                <property name="required">false</property>
              </properties>
      

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: