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

Retrieve Latest Artifact Rest API not working properly for non-maven Artifacts

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 6.12.0
    • Component/s: None
    • Labels:
      None
    • Severity:
      Medium

      Description

      Retrieve Latest Artifact Rest API not working properly for non-maven artifacts.

      If you run the following rest api command:

       

      https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-RetrieveLatestArtifact

       

      It will retrieve the latest artifact uploaded and not the latest version.

       

      Step to reproduce:

       

      1.) Setup an Artifactory instance with a generic repository. We used the following layout:

      [orgPath]/[module]/[baseRev]/[module]-[baseRev].[ext]

      2.) upload an artifact following the layout of the repository for example artifact-0.3.3.zip

      3.) upload another artifact following the layout of the repository for example artifact-0.2.3.zip

      4.) Run the Rest api call. Expected result is artifact-0.3.3.zip but the return output will be artifact-0.2.3.zip.

      We also test this using the following layout:

      [orgPath]/[module]/[baseRev]/[fileItegRev]/[module]-[fileItegRev].[ext]

      However we received the following massage when using [fileItegRev]  in the layout:
      {
      "errors" : [

      { "status" : 404, "message" : "File not found." }

      ]

        Attachments

          Issue Links

            Activity

                People

                Assignee:
                rotemk Rotem Kfir (Inactive)
                Reporter:
                ohadl Ohad Levy
                Votes:
                2 Vote for this issue
                Watchers:
                6 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Sync Status

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