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

multipush "Scheduled Replication Status" REST API return incorrect information when the target repositories have the same name

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: 4 - Normal
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Replication
    • Labels:
      None
    • Severity:
      Medium

      Description

      when configuring multipush replication and the target repositories have the same name in the status field in the response of Scheduled Replication Status REST API the value is taken only from one of the repositories and being set for both.

       

      Steps to reproduce:

      1. Configure multipush replication to two targets with the same repository name
      2. During the replication process stop on of the instances to fail the replication
      3. In the repository properties it should have both "ok" and "error" (for the replication result property)
      4. Issue the Scheduled Replication Status and notice the output is different then the UI:
      5. $ curl -s -X GET -k -u admin:password http://localhost:8082/artifactory/api/replication/generic-local
        {
        "status" : "error",
        "lastCompleted" : "2019-01-30T15:22:01.660+02:00",
        "targets" : [ {
        "url" : "http://localhost:8081/artifactory/g-local-push",
        "repoKey" : "g-local-push",
        "status" : "ok",
        "lastCompleted" : "2019-01-30T15:29:27.437+02:00"
        }, {
        "url" : "http://10.1.16.225:8081/artifactory/g-local-push",
        "repoKey" : "g-local-push",
        "status" : "ok",
        "lastCompleted" : "2019-01-30T15:29:27.437+02:00"
        } ],
        "repositories" : {
        "g-local-push" : {
        "status" : "ok",
        "lastCompleted" : "2019-01-30T15:29:27.437+02:00"
        }
        }
        }
        
      1. In addition, notice the in the repositories section above there is only one repository name and not two as the number of the target repositories.
      2. In case the repositories name on the targets are different the output of the REST API call is correct:
      3. {
        "status" : "error",
        "lastCompleted" : "2019-01-30T16:21:52.133+02:00",
        "targets" : [ {
        "url" : "http://localhost:8081/artifactory/test-ka1",
        "repoKey" : "g-local-push1",
        "status" : "error",
        "lastCompleted" : "2019-01-30T16:21:52.133+02:00"
        }, {
        "url" : "http://10.1.16.225:8081/artifactory/test-ka2",
        "repoKey" : "g-local-push2",
        "status" : "ok",
        "lastCompleted" : "2019-01-30T16:22:06.935+02:00"
        } ],
        "repositories" : {
        "g-local-push2" : {
        "status" : "ok",
        "lastCompleted" : "2019-01-30T16:22:06.935+02:00"
        },
        "g-local-push1" : {
        "status" : "error",
        "lastCompleted" : "2019-01-30T16:21:52.133+02:00"
        }
        }
        }
        

        Attachments

          Activity

              People

              Assignee:
              Unassigned
              Reporter:
              kfira Kfir Avraham
              Votes:
              7 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:

                  Sync Status

                  Connection: RTFACT Sync
                  RTMID-18401 -
                  SYNCHRONIZED
                  • Last Sync Date: