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

Errors when querying for Users and Groups

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 10.10-HF54
    • Fix Version/s: 10.10-HF55, 2021.13
    • Component/s: Rest API
    • Release Notes Summary:
      Page Providers on users and groups correctly serialize the response.
    • Backlog priority:
      1,000
    • Sprint:
      nxplatform #49

      Description

      Since HF54, we are getting errors when querying for Users and Groups.

      Steps To Reproduce:

      1. Login to application
      2. Navigate to Administration->Users and Groups

      Expected Results:
      Latest Users and Groups displays

      Actual Results:
      There is a 500 error in the browser console on the call to

      nuxeo-app.html-44.js:2239 GET http://localhost:8080/nuxeo/api/v1/query/LATEST_CREATED_USERS_OR_GROUPS_PROVIDER 500
      

      Doing curl requests like the following also produce error

      curl -su Administrator:Administrator -H 'Content-Type: application/json' -H 'properties: *' \
      http://localhost:8080/nuxeo/api/v1/search/pp/LATEST_CREATED_USERS_OR_GROUPS_PROVIDER/execute
      
      curl -su Administrator:Administrator \
      -H 'Accept: text/plain,application/json, application/json' \
      -H 'properties: *' -H 'Content-Type: application/json' \
      'http://localhost:8080/nuxeo/api/v1/query/LATEST_CREATED_USERS_OR_GROUPS_PROVIDER'
      
      curl -X POST 'http://localhost:8080/nuxeo/api/v1/automation/User.Get' \
      -H 'Content-Type: application/json' \
      -d '{"login":"Administrator"}' \
      -u Administrator:Administrator
      

      Log file shows the following error

      2021-11-19T15:32:15,327 ERROR [http-nio-0.0.0.0-8080-exec-5] [nuxeo-error-log] javax.servlet.ServletException: java.lang.IllegalArgumentException: null docRref
      javax.servlet.ServletException: java.lang.IllegalArgumentException: null docRref
      	at org.nuxeo.ecm.platform.web.common.requestcontroller.filter.NuxeoRequestControllerFilter.doFilter(NuxeoRequestControllerFilter.java:154) ~[nuxeo-platform-web-common-10.10-HF52.jar:?]
      .
      .
      .
      Caused by: java.lang.IllegalArgumentException: null docRref
      	at org.nuxeo.ecm.core.api.AbstractSession.resolveReference(AbstractSession.java:328) ~[nuxeo-core-10.10-HF54.jar:?]
      	at org.nuxeo.ecm.core.api.AbstractSession.refreshDocument(AbstractSession.java:2594) ~[nuxeo-core-10.10-HF54.jar:?]
      	at org.nuxeo.ecm.core.api.impl.DocumentModelImpl.refresh(DocumentModelImpl.java:1414) ~[nuxeo-core-api-10.10-HF54.jar:?]
      	at org.nuxeo.ecm.core.api.impl.DocumentModelImpl.isCheckedOut(DocumentModelImpl.java:629) ~[nuxeo-core-api-10.10-HF54.jar:?]
      	at org.nuxeo.ecm.core.io.marshallers.json.document.DocumentModelJsonWriter.doWriteEntityBody(DocumentModelJsonWriter.java:165) ~[nuxeo-core-io-10.10-HF54.jar:?]
      	at org.nuxeo.ecm.core.io.marshallers.json.document.DocumentModelJsonWriter.lambda$writeEntityBody$0(DocumentModelJsonWriter.java:154) ~[nuxeo-core-io-10.10-HF54.jar:?]
      	at org.nuxeo.ecm.core.io.marshallers.json.document.DocumentModelJsonWriter.withDocumentAttached(DocumentModelJsonWriter.java:283) ~[nuxeo-core-io-10.10-HF54.jar:?]
      	at org.nuxeo.ecm.core.io.marshallers.json.document.DocumentModelJsonWriter.writeEntityBody(DocumentModelJsonWriter.java:154) ~[nuxeo-core-io-10.10-HF54.jar:?]
      	at org.nuxeo.ecm.core.io.marshallers.json.document.DocumentModelJsonWriter.writeEntityBody(DocumentModelJsonWriter.java:117) ~[nuxeo-core-io-10.10-HF54.jar:?]
      	at org.nuxeo.ecm.core.io.marshallers.json.ExtensibleEntityJsonWriter.write(ExtensibleEntityJsonWriter.java:80) ~[nuxeo-core-io-10.10-HF54.jar:?]
      	at org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonWriter.write(AbstractJsonWriter.java:81) ~[nuxeo-core-io-10.10-HF54.jar:?]
      	at org.nuxeo.ecm.core.io.marshallers.json.DefaultListJsonWriter.write(DefaultListJsonWriter.java:127) ~[nuxeo-core-io-10.10-HF54.jar:?]
      	at org.nuxeo.ecm.core.io.marshallers.json.document.DocumentModelListJsonWriter.write(DocumentModelListJsonWriter.java:57) ~[nuxeo-core-io-10.10-HF54.jar:?]
      	at org.nuxeo.ecm.core.io.marshallers.json.document.DocumentModelListJsonWriter.write(DocumentModelListJsonWriter.java:42) ~[nuxeo-core-io-10.10-HF54.jar:?]
      	at org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonWriter.write(AbstractJsonWriter.java:81) ~[nuxeo-core-io-10.10-HF54.jar:?]
      	at org.nuxeo.ecm.webengine.jaxrs.coreiodelegate.PartialCoreIODelegate.writeTo(PartialCoreIODelegate.java:113) ~[nuxeo-webengine-jaxrs-10.10-HF44.jar:?]
      	at com.sun.jersey.spi.container.ContainerResponse.write(ContainerResponse.java:302) ~[jersey-server-1.19.4.jar:1.19.4]
      	at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1510) ~[jersey-server-1.19.4.jar:1.19.4]
      	at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1419) ~[jersey-server-1.19.4.jar:1.19.4]
      	at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1409) ~[jersey-server-1.19.4.jar:1.19.4]
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  PagerDuty

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