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

    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

            Hide
            hudson Jenkins added a comment -

            SUCCESS: Integrated in master/nuxeo-master #1166
            NXP-23245: cleanup (thomas roger: 40952aa0604011f403d71f0716e9f17b1379906a)
            NXP-23245: handle user or group containing '/' character (thomas roger: ed6019f131b0817404160695e51cca64e9d131e7)

            Show
            hudson Jenkins added a comment - SUCCESS: Integrated in master/nuxeo-master #1166 NXP-23245 : cleanup (thomas roger: 40952aa0604011f403d71f0716e9f17b1379906a ) NXP-23245 : handle user or group containing '/' character (thomas roger: ed6019f131b0817404160695e51cca64e9d131e7 )
            Hide
            hudson Jenkins added a comment -

            SUCCESS: Integrated in 8.10/nuxeo-8.10 #519
            NXP-23245: cleanup (troger: 31d11ff2aab9d353350201cf3dff9299b8fb3437)
            NXP-23245: handle user or group containing '/' character (troger: 20fae662eaec649a62edc0eea13c45c91fbfb8e3)

            Show
            hudson Jenkins added a comment - SUCCESS: Integrated in 8.10/nuxeo-8.10 #519 NXP-23245 : cleanup (troger: 31d11ff2aab9d353350201cf3dff9299b8fb3437 ) NXP-23245 : handle user or group containing '/' character (troger: 20fae662eaec649a62edc0eea13c45c91fbfb8e3 )
            Hide
            hudson Jenkins added a comment -

            SUCCESS: Integrated in master/nuxeo-master #1175
            NXP-23245: fix regexp for ids ending with 'user' or 'group' (thomas roger: 7a10fbbd071faa62951fffe410be75d8caeb1ca9)

            Show
            hudson Jenkins added a comment - SUCCESS: Integrated in master/nuxeo-master #1175 NXP-23245 : fix regexp for ids ending with 'user' or 'group' (thomas roger: 7a10fbbd071faa62951fffe410be75d8caeb1ca9 )
            Hide
            hudson Jenkins added a comment -

            SUCCESS: Integrated in 8.10/nuxeo-8.10 #521
            NXP-23245: fix regexp for ids ending with 'user' or 'group' (troger: 24ec25051234b8c65e053e8de4c8647b94268ac8)

            Show
            hudson Jenkins added a comment - SUCCESS: Integrated in 8.10/nuxeo-8.10 #521 NXP-23245 : fix regexp for ids ending with 'user' or 'group' (troger: 24ec25051234b8c65e053e8de4c8647b94268ac8 )

              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