Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-17798

Nuget package version behaviour different from www.nuget.org

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.13.0, 3.15.0
    • Fix Version/s: None
    • Component/s: NuGet
    • Labels:
    • Story Points:
      3

      Description

      For package NUnitTestAdaptor, Nuget site shows version is '1.2.0"
      https://www.nuget.org/packages/NUnitTestAdapter/

      Request for "1.2.0" through Nexus returns a 404

      curl -v -u admin:admin123 "http://localhost:8081/repository/nuget-test/Packages(Id='NUnitTestAdapter',Version='1.2.0')" -o /dev/null

      Request for "1.2" returns 200

      curl -v -u admin:admin123 "http://localhost:8081/repository/nuget-test/Packages(Id='NUnitTestAdapter',Version='1.2')" -o /dev/null

      Both calls work fine when going directly to https://www.nuget.org/api/v2

      curl -v "https://www.nuget.org/api/v2/Packages(Id='NUnitTestAdapter',Version='1.2.0')" -o /dev/null

      curl -v "https://www.nuget.org/api/v2/Packages(Id='NUnitTestAdapter',Version='1.2')" -o /dev/null

       

      The behavior is different when connected to Nexus. Nexus should handle the same way as if connected to nuget site directly
       
      Looking at what is returned, it seems that the version is set to 1.2
       
       <content type="application/zip" src="https://www.nuget.org/api/v2/package/NUnitTestAdapter/1.2.0"/> <m:properties>
        <d:Id>NUnitTestAdapter</d:Id>
        <d:Version>1.2</d:Version>
        <d:NormalizedVersion>1.2.0</d:NormalizedVersion>
        <d:Authors>NUnit Software</d:Authors>

       
       Looking at version 2.1.0, I see that the version is correctly set to 2.1.0
       

       <content type="application/zip" src="https://www.nuget.org/api/v2/package/NUnitTestAdapter/2.1.0"/>
       <m:properties>
        <d:Id>NUnitTestAdapter</d:Id>
        <d:Version>2.1.0</d:Version>
        <d:NormalizedVersion>2.1.0</d:NormalizedVersion>
        <d:Authors>NUnit Software</d:Authors>

       

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            msurani Mahendra Surani
            CC:
            Hudson Huang
            Last Updated By:
            Peter Lynch Peter Lynch
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Date of First Response:

                tigCommentSecurity.panel-title