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

Artifactory permission target cannot be deleted if it has special characters in name

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Duplicate
    • Affects Version/s: 6.3.3, 6.5.0, 6.5.2
    • Fix Version/s: None
    • Component/s: permissions
    • Labels:
      None

      Description

      Hi,

      We have identified an issue with permission targets, deleting a permission target with special character in Permission Target Name gives an error as per below:

       

      ip-10-8-16-46:~ shahin$ curl -u admin:password -X DELETE "http://localhost:8082/artifactory/api/security/permissions/??fitb-release-local?"}{{  "errors" : [ {    "status" : 405,    "message" : "Method Not Allowed"  } ]}

       

      Similarly, an error is seen in Artifactory UI as well (404)

      }{{}{{Caused by: org.jfrog.access.client.AccessClientHttpException: HTTP response status 404:Failed on executing /api/v1/permissions/jfrt@01cspqgsvcpgjj1m1d7zgq1pj7:?qwertyu, with response: {
      {{ {{ {{ "errors" : [}}}}{{

      {{

      { "code" : "NOT_FOUND", "message" : "Permission not found: jfrt@01cspqgsvcpgjj1m1d7zgq1pj7:" }

      }}

      }}}}]
      {{ {{ }}}}}}}

      Reproduced with latest version of Artifactory.

       

      Regards,

      Shahin

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                muhammeds Muhammed Shahin
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: