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

Nuget Prerelease Versions Forced into lowercase

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Artifactory, NuGet
    • Labels:
      None
    • Environment:

      Artifactory 7.37.14+

      Description

      Issue description:

      When requesting the index.json file from the Nuget V3 API the page URL provided forces the version numbers into lowercase.

      If the version number is in mixed case, these versions are not resolvable through local repositories. 

      Recreation Steps:

      1. Create local Nuget repository
      2. Create two versions of a package com.example.package.0.1.0-newpackage.3 and com.example.package.0.1.0-oldPackage.1
      3. Send a request to the nuget API for the index.json ($ART_URL/api/nuget/v3/nuget-repo/registration-semver2/com.example.package/index.json)
      4. This index contains an @id field which has the link to the page
      5. Send a request for the page ($ART_URL/api/nuget/v3/nuget-repo/registration-semver2/com.example.package/page/0.1.0-oldpackage.1/0.1.0-newpackage.3.json)
      6. This URL returns a 404 since the range is exclusive of either of the versions of the package.

       

      Screenshot attached.                                           

      Correcting the URL to match the casing of the lower version will return the correct page ($ART_URL/api/nuget/v3/nuget-repo/registration-semver2/com.example.package/page/0.1.0-oldPackage.1/0.1.0-newpackage.3.json)

      Expected Behavior:

      Page URL matches the lower/upper version casing in the index.json for local repos

       Possible Workarounds:

      1. Using the Nuget V2 API
      2. Using all lowercase characters in prerelease version numbering

       

        Attachments

          Activity

              People

              Assignee:
              Unassigned
              Reporter:
              jayv Jay Virtanen [X] (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: