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

REST API response changed between versions when uploading an artifact

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 7.19.8
    • Component/s: None
    • Labels:
      None
    • Location:
      External

      Description

      On version 7.19.4, when uploading an artifact the content of the json response has changed from previous versions.

      Steps to reproduce:

      1. Upload a file to Artifactory, version 7.19.4 

      curl -uadmin:Password1 -XPUT http://<Version_7.19.4>/artifactory/nuget-local/toolbelt.4.0.10611.1.nupkg -T toolbelt.4.0.10611.1.nupkg { "slf" : "http://<Version_7.19.4>/artifactory/nuget-local/toolbelt.4.0.10611.1.nupkg", "repo" : "nuget-local", "path" : "/toolbelt.4.0.10611.1.nupkg", "created" : "2021-05-31T08:29:26.594Z", "createdBy" : "admin", "lastModified" : null, "modifiedBy" : null, "lastUpdated" : null, "properties" : null, "downloadUri" : "http://<Version_7.19.4>/artifactory/nuget-local/toolbelt.4.0.10611.1.nupkg", "remoteUrl" : null, "mimeType" : "application/x-nupkg", "size" : "53355", "checksums" : { "sha1" : "389e3805254b9e22c113624505feae3d16132e39", "md5" : "b14a366b783f933072c52a8ff37ea52e", "sha256" : "de9a5528833af9a043ac42d8862870835bcf5217ecd58e68f098089ab36228e0" }, "originalChecksums" : { "sha1" : null, "md5" : null, "sha256" : "de9a5528833af9a043ac42d8862870835bcf5217ecd58e68f098089ab36228e0" } }
      

       

      2. Upload a file to Artifactory, version 7.x

      curl -uadmin:password1 -XPUT http://<Version_7.6.3>:8082/artifactory/nuget-local/toolbelt.4.0.10611.1.nupkg -T toolbelt.4.0.10611.1.nupkg { "repo" : "nuget-local", "path" : "/toolbelt.4.0.10611.1.nupkg", "created" : "2021-02-03T10:51:08.451Z", "createdBy" : "admin", "downloadUri" : "http://<Version_7.6.3>:8082/artifactory/nuget-local/toolbelt.4.0.10611.1.nupkg", "mimeType" : "application/x-nupkg", "size" : "53355", "checksums" : { "sha1" : "389e3805254b9e22c113624505feae3d16132e39", "md5" : "b14a366b783f933072c52a8ff37ea52e", "sha256" : "de9a5528833af9a043ac42d8862870835bcf5217ecd58e68f098089ab36228e0" }, "originalChecksums" : { "sha256" : "de9a5528833af9a043ac42d8862870835bcf5217ecd58e68f098089ab36228e0" }, "uri" : "http://<Version_7.6.3>:8082/artifactory/nuget-local/toolbelt.4.0.10611.1.nupkg" }
      

      We can see the in version 7.19.4, the URL to the file is presented as 'slf' and in the lower version it is presented as 'uri'

        Attachments

          Activity

              People

              Assignee:
              Unassigned
              Reporter:
              adim Adi Malca
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Sync Status

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