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

Id for external user cannot be handled by rest api when containing forward slashes

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 8.10, 9.1, 9.3-SNAPSHOT
    • Fix Version/s: 8.10-HF16, 9.3
    • Component/s: Rest API, Web UI
    • Release Notes Summary:
      The REST API handles external user Id when it contains forward slashes
    • Sprint:
      nxfit 9.3.7
    • Story Points:
      3

      Description

      When calling the rest api user endpoint with external user id transient/zzz@zzz.zz/b492b19ea89d420e?
      ex:
      http://localhost:8080/nuxeo/api/v1/repo/default/user/transient/zzz@zzz.zz/b492b19ea89d420e?

      response:

      {"entity-type":"exception","code":"org.nuxeo.ecm.webengine.model.exceptions.WebResourceNotFoundException","status":404,"message":"user does not exist"}
      

      this is probably caused by:

      nuxeo-features/rest-api/nuxeo-rest-api-server/src/main/java/org/nuxeo/ecm/restapi/server/jaxrs/usermanager/AbstractUMRootObject.java

      AbstractUMRootObject.java
      @Path("{artName}")
      public Object getArtifactWebObject(@PathParam("artName") String artName)  ...
      

      it ignores everything after forward slash.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 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, 5 hours, 30 minutes
                  1d 5h 30m

                    PagerDuty

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