[RTFACT-15535] Access create/update permissions should fail when user or group doesn't exist Created: 26/Dec/17  Updated: 26/Dec/17

Status: Open
Project: Artifactory Binary Repository
Component/s: Access Server
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Normal
Reporter: Yevdo Abramov Assignee: Unassigned
Resolution: Unresolved Votes: 0
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.

Generated at Wed Aug 21 11:34:52 UTC 2019 using JIRA 7.6.3#76005-sha1:8a4e38d34af948780dbf52044e7aafb13a7cae58.