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

Define a page provider named LATEST_CREATED_USERS_OR_GROUPS_PROVIDER outside Elasticsearch modules

    XMLWordPrintable

    Details

    • Release Notes Summary:
      Define LATEST_CREATED_USERS_OR_GROUPS_PROVIDER page provider outside Elasticsearch implementation
    • Backlog priority:
      500
    • Sprint:
      nxGang Sprint 9.3.5, nxGang Sprint 9.3.6, nxGang Sprint 9.3.7
    • Story Points:
      2

      Description

      The page provider LATEST_CREATED_USERS_OR_GROUPS_PROVIDER is currently defined in the Elasticsearch Audit module: https://github.com/nuxeo/nuxeo/blob/master/nuxeo-features/nuxeo-elasticsearch/nuxeo-elasticsearch-audit/src/main/resources/OSGI-INF/es-audit-pageprovider-contrib.xml#L142

      If Elasticsearch audit is disabled, an error is logged when displaying the "Users & groups" tab in the new WebUI:

      2017-07-21 18:45:56,653 ERROR [http-bio-0.0.0.0-8080-exec-35] [org.nuxeo.ecm.restapi.server.jaxrs.QueryObject] No page provider definition found for LATEST_CREATED_USERS_OR_GROUPS_PROVIDER
      2017-07-21 18:45:56,654 WARN  [http-bio-0.0.0.0-8080-exec-35] [org.nuxeo.ecm.webengine.app.WebEngineExceptionMapper] Exception in JAX-RS processing
      org.nuxeo.ecm.core.api.NuxeoException: Could not resolve page provider with name 'LATEST_CREATED_USERS_OR_GROUPS_PROVIDER'
      	at org.nuxeo.ecm.platform.query.core.PageProviderServiceImpl.getPageProvider(PageProviderServiceImpl.java:199)
      

      This is due to the element nuxeo-user-group-latest which always calls this page provider.

      To avoid the error, we need to define a page provider named LATEST_CREATED_USERS_OR_GROUPS_PROVIDER in another project which does not depend on Elasticsearch.
      And update the contribution in Elasticsearch Audit project to require the new component.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 day, 3 hours
                  1d 3h

                    PagerDuty

                    Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.