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

Access create/update permissions should fail when user or group doesn't exist

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Access Server
    • Labels:
      None

      Description

      1. create user1, user2
      2. call this API request
        curl -X POST \
          http://<ARTIFACTORY_URL>/artifactory/api/access/api/v1/permissions \
          -H 'Authorization: Bearer <YOUR_TOKEN>' \
          -H 'Content-Type: application/json' \
          -d '{
          "name": "abc",
          "display_name": "abc",
          "resource_type": "string",
          "service_id": "<YOUR_SERVICE_ID>",
          "custom_data": "{}",
          "actions": {
            "userActions": {
        		"user1": ["distribute"],
        		"user2": ["distribute"],
        		"user3": ["distribute"]
        	},
            "groupActions": {
        		"group1": ["distribute"]
        	}
          }
        }'
        
      • Actual Result: success
      • Expected Result: failure on not existing user and groups.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              yevdoa Yevdo Abramov
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: