Details

    • Type: Bug
    • Status: Open
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: 6.12.2
    • Fix Version/s: None
    • Component/s: permissions, REST API
    • Labels:
      None

      Description

      Create a permission where the name has a slash . Fetching the list of permissions from the API returns a URI where the slash is not encoded.

       

      Code snippet:

      $user = "admin"

      $pass = "XXX"

      $encodedCreds = [System.Convert]::ToBase64String([System.Text.Encoding]::ASCII.GetBytes("${user}:${pass}"))

      $permissions = Invoke-RestMethod -Uri 'http://art.com6/artifactory/api/security/permissions' -Headers @

      {     Authorization = "Basic $encodedCreds" }

      foreach ($permission in $permissions)

      {     Write-Host $permission.uri }

       

      Returns:

      http://lin2dv2do36:80/artifactory/api/security/permissions/Any%20Remote

      http://lin2dv2do36:80/artifactory/api/security/permissions/*A/B*

      http://lin2dv2do36:80/artifactory/api/security/permissions/Anything

       

      Should return:

      http://lin2dv2do36/artifactory/api/security/permissions/Any+Remote

      http://lin2dv2do36/artifactory/api/security/permissions/A%2fB

      http://lin2dv2do36/artifactory/api/security/permissions/Anything

       

      The impact of this bug is I cannot use the returned uri to follow to get more details.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              scottm Scott Mosher
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: