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

Promoting Docker path that exists but does not contain any files return 200 promotion succeeded

    XMLWordPrintable

    Details

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

      Description

      When we are performing a Docker promotion of an image which doesn't exist (the folder is empty), the API call gives back an HTTP 200, when it should be 404.

      For example:

      If you will check Screenshot 1 you can see that the directory is empty, there is no image to promote.

      By running the promotion API I see that a 200 is generated, but is in opposition with logs message:

      curl -i -uadmin:password "http://localhost:8081/artifactory/api/docker/docker-sandbox-local/v2/promote" -H "Content-Type:application/json" -d '{"targetRepo":"docker-release-local","dockerRepository":"eventservice/zookeeper","tag":"3.4.9-b9"}'

      HTTP/1.1 200 OK

      Promotion ended successfully

       

      From Artifactory logs:

      2019-04-23 12:44:33,813 [http-nio-8081-exec-40] [INFO ] (o.a.a.d.r.v.p.DockerV2Promoter:63) - Promoting docker image 'eventservice/zookeeper/3.4.9-b9' from 'docker-sandbox-local' to 'docker-release-local'

      2019-04-23 12:44:34,561 [http-nio-8081-exec-40] [ERROR] (o.a.p.PropertiesServiceImpl:173) - Cannot set properties for docker-release-local:eventservice/zookeeper/3.4.9-b9: Item not found.

       

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            adiv Adi Vizgan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:

                Sync Status

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