-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 8.10
-
Component/s: Elasticsearch, Query & PageProvider, Web UI
-
Release Notes Summary:Define LATEST_CREATED_USERS_OR_GROUPS_PROVIDER page provider outside Elasticsearch implementation
-
Tags:
-
Backlog priority:500
-
Sprint:nxGang Sprint 9.3.5, nxGang Sprint 9.3.6, nxGang Sprint 9.3.7
-
Story Points:2
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.