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

Import of security configuration file with large number of groups/permissions/users can fail the import.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 5.8.3
    • Fix Version/s: 6.6.0
    • Component/s: None
    • Labels:
      None

      Description

      Import of security configuration file with large number of groups/permissions/users can fail the import.
      Example use case, when configuring DR in Mission-Control, and the , master instance include a lot of groups/permissions/users the import at the target instance can fail.

      steps to reproduce:
      1. install Mission-Control and configure Artifactory DR.
      2. At the master instance create high number of groups/permissions/users (use the scripts below).
      3. Init the DR.
      4. Check the target server logs and see failures in Import.

      create users:

      #!/bin/bash
              for i in `seq 1 2300`;
              do
                      curl -u admin:password -H "Content-Type: application/json" -d '{"email":"a@a.com","password":"123456"}' -X PUT http://localhost:8081/artifactory/api/security/users/user$i
              done   
      

      create groups:

      #!/bin/bash
              for i in `seq 1 2000`;
              do
                      curl -u admin:password -H "Content-Type: application/json" -d '{"description" : "test group $i for rest api"}' -X PUT http://localhost:8081/artifactory/api/security/groups/group$i
              done   
      

      create permissions:

        #!/bin/bash
              for i in `seq 1 2500`;
              do
                      curl -u admin:password -H "Content-Type: application/json" -d '{"repositories": ["libs-release"],"principals":{"users" : {"user1": ["r","w","m"]}}}' -X PUT http://localhost:8081/artifactory/api/security/permissions/permission$i
              done
      

        Attachments

          Activity

            People

            • Assignee:
              nadavy Nadav Yogev
              Reporter:
              yehudah Yehuda Hadad
              Assigned QA:
              Konstantin Shenderov
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: