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

nuget list -pre gets wrong version

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Deferred
    • Affects Version/s: 4.2.0
    • Fix Version/s: None
    • Component/s: NuGet
    • Labels:
    • Environment:

      Accessing a hosted artifactory repository

    • Severity:
      High

      Description

      for nuget and choco list commands, the -pre flag should return the newest version, even if the latest is beta. When running nuget and choco against their public repos, they behave as expected, but when run against artifactory, they don't.

      On an artifactory repo with these versions, I expect to get helloworld 0.1.0-beta-9; the actual was 0.0.8.

      C:\> choco list helloworld -pre -all
      helloworld 0.0.7
      helloworld 0.0.8
      helloworld 0.1.0-beta-9

      PS C:\> choco list helloworld -pre
      helloworld 0.0.8

      On a public chocolatey artifact, it works as expected:

      C:\> choco list keepass-plugin-keeagent -pre -all
      keepass-plugin-keeagent 0.6.3
      keepass-plugin-keeagent 0.7.1.20150710-beta
      keepass-plugin-keeagent 0.7.1.20151011-beta
      keepass-plugin-keeagent 0.7.1-beta

      PS C:\> choco list keepass-plugin-keeagent -pre
      keepass-plugin-keeagent 0.7.1.20151011-beta

        Attachments

          Activity

              People

              Assignee:
              Unassigned
              Reporter:
              skiplee Skip Lee (Inactive)
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Sync Status

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