Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-11419

Cannot restore content view with currentPage > 0

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.7.1
    • Component/s: None
    • Impact type:
      API added
    • Upgrade notes:
      Hide

      PageProviderService#getPageProvider API now take an additional DocumentModel parameter to represent the search document model

      Show
      PageProviderService#getPageProvider API now take an additional DocumentModel parameter to represent the search document model

      Description

      When restoring a content view from a jsonContentViewState and using a currentPage > 0, we end up with the following stack trace:

      Caused by: org.nuxeo.ecm.core.api.ClientRuntimeException: org.nuxeo.ecm.core.api.ClientException: Cannot build query of provider 'netflix_dam_faceted_search': no search document model is set
           at org.nuxeo.ecm.platform.query.nxql.CoreQueryDocumentPageProvider.buildQuery(CoreQueryDocumentPageProvider.java:221)
           at org.nuxeo.ecm.platform.query.nxql.CoreQueryDocumentPageProvider.getCurrentPage(CoreQueryDocumentPageProvider.java:87)
           at org.nuxeo.ecm.platform.query.api.AbstractPageProvider.setCurrentPage(AbstractPageProvider.java:171)
           at org.nuxeo.ecm.platform.query.core.PageProviderServiceImpl.getPageProvider(PageProviderServiceImpl.java:112)
           at org.nuxeo.ecm.platform.contentview.jsf.ContentViewServiceImpl.getPageProvider(ContentViewServiceImpl.java:260)
           at org.nuxeo.ecm.platform.contentview.jsf.ContentViewImpl.getPageProvider(ContentViewImpl.java:302)
           at org.nuxeo.ecm.platform.contentview.jsf.ContentViewImpl.getPageProvider(ContentViewImpl.java:309)
           at org.nuxeo.ecm.platform.contentview.jsf.ContentViewServiceImpl.restoreContentView(ContentViewServiceImpl.java:360)
           at org.nuxeo.ecm.platform.contentview.seam.ContentViewRestActions.restoreContentView(ContentViewRestActions.java:85)
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: