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

SPIKE Nuget V3 search does not return the expected version against Hosted repository

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.39.0, 3.40.0, 3.40.1
    • Fix Version/s: None
    • Component/s: nuget-v3, Search
    • Story Points:
      5
    • Sprint:
      NXRM MadMax Sprint 38, NXRM MadMax Sprint 39
    • Notability:
      2
    • InvestmentLayer:
      support-escalated
    • Aha Concept:
      non-concept

      Description

      SYMPTOM:

      After upgrading, noticed the "nuget search" (/query/) result does not return the latest version.

      REPRODUCE STEPS:

      1. Install Nexus 3.40.1 with nuget-hosted repository
      2. Somehow manage to upload many versions under one component...
      3. Compare "nuget search" result between the Source ending with /index.json and without

      EXPECTED BEHAVIOUR:

      Both (Nuget V2 and V3 search) should return same result.

      ACTUAL BEHAVIOUR:

      Nuget V3 one returns an unexpected old version.

      $ nuget search -Source http://localhost:8081/repository/nuget-hosted/ -Prerelease -Take 1000 Xxxxxx.Yyyy.SDK
      MSBuild auto-detection: using msbuild version '15.0' from '/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/msbuild/15.0/bin'.
      Please provide credentials for: http://localhost:8081/repository/nuget-releases-hosted/
      UserName: admin
      Password: ********
        GET http://localhost:8081/repository/nuget-hosted/Search()?$filter=IsAbsoluteLatestVersion&searchTerm='Xxxxxx.Yyyy.SDK'&targetFramework=''&includePrerelease=true&$skip=0&$top=1000&semVerLevel=2.0.0
        OK http://localhost:8081/repository/nuget-hosted/Search()?$filter=IsAbsoluteLatestVersion&searchTerm='Xxxxxx.Yyyy.SDK'&targetFramework=''&includePrerelease=true&$skip=0&$top=1000&semVerLevel=2.0.0 608ms
      ====================
      Source: http://localhost:8081/repository/nuget-hosted/
      --------------------
      > Xxxxxx.Yyyy.SDK | 6.99.0.13 | Downloads: 0
        Yyyy Platform SDK.
      -------------------- 
      
      $ nuget search -Source http://localhost:8081/repository/nuget-hosted/index.json -Prerelease -Take 1000 Xxxxxx.Yyyy.SDK
      MSBuild auto-detection: using msbuild version '15.0' from '/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/msbuild/15.0/bin'.
      Please provide credentials for: http://localhost:8081/repository/nuget-hosted/index.json
      UserName: admin
      Password: ********
      ====================
      Source: http://localhost:8081/repository/nuget-hosted/index.json
      --------------------
      > Xxxxxx.Yyyy.SDK | 6.0.0.2886 | Downloads: 0
        Yyyy Platform SDK.
      --------------------
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dsawa Dawid Sawa
              Reporter:
              hosako Hajime Osako
              Last Updated By:
              Dawid Sawa Dawid Sawa
              Team:
              NXRM - Mad Max
              Owner:
              Dawid Sawa Dawid Sawa
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response:

                  tigCommentSecurity.panel-title