Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-27041

Group names are not url encoded

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Deferred
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Artifactory, UI
    • Labels:
      None
    • Environment:

      Artifactory v7.35.2 using MySQL as DB backend

    • Severity:
      High
    • Location:
      External

      Description

      Problem

      It's possible to create groups with some characters that need URL encoding before being used in API requests. Example "strange%name". This is a valid group name and I can create a group with this name. However, when I go to view this group I get a 400 response from the "/ui/api/v1/ui/groups/strange%name" endpoint since it doesn't url encode the group name before use.

      /ui/api/v1/ui/groups/strange%25name returns the expected json response.

      Expectation

      Group names needs to be url encoded before they are used in API requests.

      If a character is not allowed in a group name (like \, / etc) it should be blocked from use in the web UI and the create group endpoint (PUT /api/security/groups).

        Attachments

          Activity

              People

              Assignee:
              Unassigned
              Reporter:
              stefanga Stefan Gangefors
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Sync Status

                  Connection: RTFACT Sync
                  RTMID-27099 -
                  SYNCHRONIZED
                  • Last Sync Date: